{"id":15710175,"url":"https://github.com/adaptant-labs/consul-dart","last_synced_at":"2025-03-30T16:26:53.379Z","repository":{"id":61973022,"uuid":"263884521","full_name":"adaptant-labs/consul-dart","owner":"adaptant-labs","description":"Consul API for Dart","archived":false,"fork":false,"pushed_at":"2023-01-23T20:16:15.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T18:06:38.985Z","etag":null,"topics":["consul","consul-api","dart","dart-library","rest","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adaptant-labs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-14T10:29:12.000Z","updated_at":"2023-11-15T04:06:31.000Z","dependencies_parsed_at":"2023-02-13T02:50:12.327Z","dependency_job_id":null,"html_url":"https://github.com/adaptant-labs/consul-dart","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/adaptant-labs%2Fconsul-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptant-labs%2Fconsul-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptant-labs%2Fconsul-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptant-labs%2Fconsul-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adaptant-labs","download_url":"https://codeload.github.com/adaptant-labs/consul-dart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246345546,"owners_count":20762415,"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":["consul","consul-api","dart","dart-library","rest","rest-api"],"created_at":"2024-10-03T21:04:14.176Z","updated_at":"2025-03-30T16:26:53.359Z","avatar_url":"https://github.com/adaptant-labs.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Consul API for Dart\n\n[![Build Status](https://travis-ci.com/adaptant-labs/consul-dart.svg?branch=master)](https://travis-ci.com/adaptant-labs/consul-dart#)\n[![Pub](https://img.shields.io/pub/v/consul.svg)](https://pub.dev/packages/consul)\n\nThis provides an implementation of the HashiCorp Consul REST API in Dart.\n\n## Overview\n\nThis is a work in progress, and only implements a subset of the APIs at present. This has primarily been designed with\nthe aim of allowing Dart-based microservices to register and unregister themselves and their corresponding health checks\nwith the Consul Agent, so this has been the initial implementation focus.\n\nImplementation of the other APIs will gradually follow.\n\n## Usage\n\nA simple usage example:\n\n```dart\nimport 'package:consul/consul.dart';\n\nmain() {\n  // Connect to the local Consul Agent\n  var consul = Consul(host: 'localhost', port: 8500);\n  var agent = ConsulAgent(consul: consul);\n  \n  // Register a new test service and health check.\n  var serviceRegistration = AgentServiceRegistration(\n    name: 'test-service',\n    address: 'localhost',\n    port: 12345,\n    check: AgentServiceCheck(\n      name: 'test-service-check',\n      interval: '30s',\n      http: 'http://localhost:12345/health',\n    ),\n  );\n\n  await agent.registerService(serviceRegistration);\n\n  ... do something ...\n\n  await agent.deregisterService('test-service');\n}\n```\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker][tracker].\n\n[tracker]: https://github.com/adaptant-labs/consul-dart/issues\n\n## License\n\nLicensed under the terms of the Apache 2.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaptant-labs%2Fconsul-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadaptant-labs%2Fconsul-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaptant-labs%2Fconsul-dart/lists"}