{"id":34144336,"url":"https://github.com/protoconf/client-go","last_synced_at":"2026-03-09T23:03:36.930Z","repository":{"id":244873528,"uuid":"816099620","full_name":"protoconf/client-go","owner":"protoconf","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-06T21:41:52.000Z","size":95,"stargazers_count":7,"open_issues_count":19,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-07T01:33:36.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/protoconf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-17T03:26:21.000Z","updated_at":"2025-03-17T18:19:03.000Z","dependencies_parsed_at":"2024-08-27T22:30:37.043Z","dependency_job_id":"f5097c5b-fdfd-4774-9341-31e4f1eb78fb","html_url":"https://github.com/protoconf/client-go","commit_stats":null,"previous_names":["protoconf/client-go"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/protoconf/client-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protoconf%2Fclient-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protoconf%2Fclient-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protoconf%2Fclient-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protoconf%2Fclient-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/protoconf","download_url":"https://codeload.github.com/protoconf/client-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protoconf%2Fclient-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30315988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-12-15T03:42:52.960Z","updated_at":"2026-03-09T23:03:36.922Z","avatar_url":"https://github.com/protoconf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://avatars.githubusercontent.com/u/51154987?s=200\u0026v=4\" width=\"100\" alt=\"project-logo\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003e\u003ca href=\"https://github.com/protoconf/protoconf\"\u003eProtoconf\u003c/a\u003e GOLANG client\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cem\u003ecodify configuration, instant delivery\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://img.shields.io/github/license/protoconf/client-go?style=default\u0026logo=opensourceinitiative\u0026logoColor=white\u0026color=0080ff\" alt=\"license\"\u003e\n\t\u003cimg src=\"https://img.shields.io/github/last-commit/protoconf/client-go?style=default\u0026logo=git\u0026logoColor=white\u0026color=0080ff\" alt=\"last-commit\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/protoconf/client-go/graph/badge.svg?token=OSiGAMlJMN)](https://codecov.io/gh/protoconf/client-go\"\u003e\n\u003cp align=\"center\"\u003e\n\t\u003c!-- default option, no dependency badges. --\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\u003c!-- TABLE OF CONTENTS --\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\u003cbr\u003e\n\n- [📍 Overview](#-overview)\n- [🧩 Features](#-features)\n- [⚙️ Installation](#️-installation)\n- [🤖 Usage](#-usage)\n- [🤝 Contributing](#-contributing)\n- [🎗 License](#-license)\n\u003c/details\u003e\n\u003chr\u003e\n\n## 📍 Overview\n\n`protoconf_loader` is a Go package that provides a flexible and robust configuration management solution.\n\u003cbr\u003e\nIt supports loading configuration from files, watching for file changes, and subscribing to configuration updates from a Protoconf server.\n\n---\n\n## 🧩 Features\n\n- Load configuration from files\n- Watch configuration files for changes\n- Subscribe to configuration updates from a Protoconf server\n- Hot Reload of configuration changes\n- Thread-safe access to configuration values\n- Support for various data types (int32, int64, uint32, uint64, float32, float64, bool, string)\n- Custom error handling and logging\n\n## ⚙️ Installation\n\nTo install the package, use the following command:\n\n```bash\ngo get github.com/protoconf/client-go\n```\n\n## 🤖 Usage\n\nHere's a basic example of how to use the protoconf_loader:\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"log\"\n\n    \"github.com/protoconf/client-go/\"\n    \"github.com/protoconf/protoconf/examples/protoconf/src/crawler\"\n    \"google.golang.org/protobuf/proto\"\n)\n\nfunc main() {\n    // Initialize the configuration with the default configuration.\n    crawlerConfig := \u0026crawler.CrawlerService{LogLevel: 3}\n    // Create a new configuration instance\n    cfg, err := protoconf_loader.NewConfiguration(crawlerConfig, \"path/to/config\")\n    if err != nil {\n        log.Fatalf(\"Failed to create configuration: %v\", err)\n    }\n\n    // Load the configuration\n    err = cfg.LoadConfig(\"path/to/config\", \"config_file_name\")\n    if err != nil {\n        log.Fatalf(\"Failed to load configuration: %v\", err)\n    }\n\n    config.OnConfigChange(func(c proto.Message) {\n\t\tlog(\"got new config\",c)\n\t})\n    // Start watching for changes\n    err = config.WatchConfig(context.Background())\n    if err != nil {\n        log.Fatalf(\"Failed to start watching configuration: %v\", err)\n    }\n\n\n    // Stop watching when done\n    cfg.StopWatching()\n}\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Here are several ways you can contribute:\n\n- **[Report Issues](https://github.com/protoconf/client-go/issues)**: Submit bugs found or log feature requests for the `client-go` project.\n- **[Submit Pull Requests](https://github.com/protoconf/client-go/blob/main/CONTRIBUTING.md)**: Review open PRs, and submit your own PRs.\n- **[Join the Discussions](https://discord.protoconf.sh/)**: Share your insights, provide feedback, or ask questions.\n\n## 🎗 License\n\nThis project is protected under the [MIT](https://choosealicense.com/licenses/mit/) License.\u003cbr\u003e\nFor more details, refer to the [LICENSE](https://github.com/protoconf/client-go/blob/main/LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotoconf%2Fclient-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotoconf%2Fclient-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotoconf%2Fclient-go/lists"}