{"id":15010408,"url":"https://github.com/tbt-post/consul-clj","last_synced_at":"2025-10-04T01:31:30.269Z","repository":{"id":62432126,"uuid":"283766218","full_name":"tbt-post/consul-clj","owner":"tbt-post","description":null,"archived":true,"fork":false,"pushed_at":"2020-08-14T17:20:24.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-17T09:23:57.649Z","etag":null,"topics":["clj","consul-agent","microservice","tbt-cloud"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tbt-post.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-30T12:21:32.000Z","updated_at":"2023-06-11T16:45:08.000Z","dependencies_parsed_at":"2022-11-01T20:47:07.032Z","dependency_job_id":null,"html_url":"https://github.com/tbt-post/consul-clj","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbt-post%2Fconsul-clj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbt-post%2Fconsul-clj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbt-post%2Fconsul-clj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbt-post%2Fconsul-clj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbt-post","download_url":"https://codeload.github.com/tbt-post/consul-clj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235208944,"owners_count":18953003,"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":["clj","consul-agent","microservice","tbt-cloud"],"created_at":"2024-09-24T19:34:04.667Z","updated_at":"2025-10-04T01:31:24.993Z","avatar_url":"https://github.com/tbt-post.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Consul agent client for clojure\n\nAny clojure service can register and send heartbeats to consul agent.\n\n== Start continuous heartbeat\n\nService will be registered initially.\nIf consul or third party deregisters service, registration will be renewed\"\n\n[source,clojure]\n----\n(start-heartbeat {:name                              \"my-service\" ; service name, required\n                  :id                                \"my-service@127.0.0.1:8081\"  ; id must be unique for agent, defaults to service name\n                  :address                           \"127.0.0.1\"  ; service remote address\n                  :port                              8081\n                  :ttl                               \"15s\"        ; timeout since last heartbeat to set critical state\n                  :deregister-critical-service-after \"1m\"         ; timeout for consul to deregister service in critical state\n                  :interval-ms                       7500})       ; heartbeat interval, milliseconds\n----\n\n== Stop continuous heartbeat\n\n[source,clojure]\n----\n(stop-heartbeat \"my-service\")\n----\n\n== Single hearbeat\n\nService will be registered if not registered yet.\n\n[source,clojure]\n----\n(heartbeat {:name                              \"my-service\"\n            :id                                \"my-service@127.0.0.1:8081\"\n            :address                           \"127.0.0.1\"\n            :port                              8081\n            :ttl                               \"15s\"\n            :deregister-critical-service-after \"1m\"})\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbt-post%2Fconsul-clj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbt-post%2Fconsul-clj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbt-post%2Fconsul-clj/lists"}