{"id":13614276,"url":"https://github.com/codenoid/GoTral","last_synced_at":"2025-04-13T18:32:37.803Z","repository":{"id":100300808,"uuid":"217096545","full_name":"codenoid/GoTral","owner":"codenoid","description":"Golang Centralized Configuration management (LIBRARY)","archived":false,"fork":false,"pushed_at":"2019-12-10T09:50:39.000Z","size":29,"stargazers_count":4,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T17:12:35.353Z","etag":null,"topics":["centralized-configuration","configuration-management","golang-library","hacktoberfest","hacktoberfest2019"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codenoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-10-23T15:53:12.000Z","updated_at":"2022-05-31T02:05:42.000Z","dependencies_parsed_at":"2023-05-13T14:15:39.783Z","dependency_job_id":null,"html_url":"https://github.com/codenoid/GoTral","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenoid%2FGoTral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenoid%2FGoTral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenoid%2FGoTral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenoid%2FGoTral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenoid","download_url":"https://codeload.github.com/codenoid/GoTral/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248760592,"owners_count":21157384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["centralized-configuration","configuration-management","golang-library","hacktoberfest","hacktoberfest2019"],"created_at":"2024-08-01T20:00:59.258Z","updated_at":"2025-04-13T18:32:37.522Z","avatar_url":"https://github.com/codenoid.png","language":"Go","readme":"# GoTral [![Go Report Card](https://goreportcard.com/badge/github.com/codenoid/GoTral)](https://goreportcard.com/report/github.com/codenoid/GoTral)\n\nEncrypted Golang Centralized Configuration management\n\n## Feature\n\n- E2E Encryption (via http/s)\n- Basic auth support\n- Multiple config file in single server\n- Easy to use, simple API and return as map[string]string\n- ....and more (/next update)\n\n## Setup \u0026 Install\n\nMake sure you already have [GoTral server](https://github.com/codenoid/GoTral-Server) up\n\nFor the library just like usual way\n\n```\ngo get -u github.com/codenoid/gotral\n```\n\n## Example Usage\n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/codenoid/gotral\"\n)\n\nfunc main() {\n\n\t// super secret key\n\tsecret := \"somehardpw\" // or just put string in there\n\n\tconfig, err := gotral.DirectLoad(\"http://localhost:6969/config?id=ecommerce.json\", secret)\n\tif err != nil { fmt.Println(err) }\n\tif val, err := config.Get(\"mysql_username\"); !err {\n\t\tfmt.Println(val)\n\t}\n\n\t// with basic auth support\n\twithOpt := gotral.GoTral{\n\t\tUrl: \"http://localhost:6969/config?id=ecommerce.json\",\n\t\tPassphrase: \"somehardpw\",\n\t\tBasicAuth: true,\n\t\tUsername: \"guest\",\n\t\tPassword: \"guest\",\n\t}\n\n\tconfig, err = withOpt.LoadConfig()\n\tif err != nil { fmt.Println(err) }\n\tif val, err := config.Get(\"mysql_username\"); !err {\n\t\tfmt.Println(val)\n\t}\n}\n```\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenoid%2FGoTral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenoid%2FGoTral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenoid%2FGoTral/lists"}