{"id":20832845,"url":"https://github.com/udhos/refresh","last_synced_at":"2026-04-28T23:32:29.717Z","repository":{"id":204189071,"uuid":"711285992","full_name":"udhos/refresh","owner":"udhos","description":"refresh delivers Spring Cloud Config Bus refresh notifications to Go applications","archived":false,"fork":false,"pushed_at":"2026-04-22T03:19:49.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-22T05:25:31.575Z","etag":null,"topics":["amqp","go","golang","rabbitmq","spring","springcloudbus"],"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/udhos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-28T19:13:26.000Z","updated_at":"2026-04-22T03:19:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"61e53e68-f270-4bea-a779-5bbd80ec5077","html_url":"https://github.com/udhos/refresh","commit_stats":null,"previous_names":["udhos/refresh"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/udhos/refresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Frefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Frefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Frefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Frefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udhos","download_url":"https://codeload.github.com/udhos/refresh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Frefresh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32404340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["amqp","go","golang","rabbitmq","spring","springcloudbus"],"created_at":"2024-11-18T00:13:25.316Z","updated_at":"2026-04-28T23:32:29.686Z","avatar_url":"https://github.com/udhos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/udhos/refresh/blob/main/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/udhos/refresh)](https://goreportcard.com/report/github.com/udhos/refresh)\n[![Go Reference](https://pkg.go.dev/badge/github.com/udhos/refresh.svg)](https://pkg.go.dev/github.com/udhos/refresh)\n\n# refresh\n\n[refresh](https://github.com/udhos/refresh) delivers [Spring Cloud Config Bus](https://www.baeldung.com/spring-cloud-bus) refresh notifications to Go applications.\n\n# Usage\n\nSee example: [examples/refresh-example/main.go](examples/refresh-example/main.go)\n\n    import \"github.com/udhos/refresh/refresh\"\n\n    amqpURL := \"amqp://guest:guest@rabbitmq:5672/\"\n    me := filepath.Base(os.Args[0])\n    debug := true\n\n    // \"#\" means receive notification for all applications\n    refresher := refresh.New(amqpURL, me, []string{\"#\"}, debug, nil)\n\n    for app := range refresher.C {\n        log.Printf(\"refresh: received notification for application='%s'\", app)\n    }\n\n# Test\n\n1. Run ./run-local-rabbit.sh\n\n2. Run refresh-example\n\nBuild and run:\n\n    go install ./examples/refresh-example\n    refresh-example\n\n3. Post a message\n\nOpen http://localhost:15672/\n\nLogin with guest:guest\n\nOpen exchange springCloudBus: http://localhost:15672/#/exchanges/%2F/springCloudBus\n\nExpand \"Publish message\".\n\nPublish a sample message like this:\n\n    {\n        \"type\": \"RefreshRemoteApplicationEvent\",\n        \"timestamp\": 1649804650957,\n        \"originService\": \"config-server:0:0a36277496365ee8621ae8f3ce7032ce\",\n        \"destinationService\": \"refresh-example:**\",\n        \"id\": \"5a4cb501-652a-4ae2-9d3e-279e1d2a2169\"\n    }\n\nCheck the logs for refresh-example application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Frefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudhos%2Frefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Frefresh/lists"}