Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.
/ clj-disco Public archive

Clojure client library for registrator-managed services.

License

Notifications You must be signed in to change notification settings

opsee/clj-disco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-disco

clj-disco is a client library for interacting with registrator.

TODO: Clean up all of the terrible assumptions we made to get this out the door quckly.

  • Support for multiple back-ends
  • Don't have magic constants like /opsee.co/registrator

Installation

user=> (require '[clj-disco.core :as disco])
nil
#'user/disco

Usage

clj-disco gets its configuration information from the environment:

ETCD_HOST (default: 127.0.0.1) is the hostname or IP address of an etcd client listener.

ETCD_PORT (default: 2379) is the port etcd is listening on for client connections.

user=> (disco/get-service-endpoint "test-service")
{:host "127.0.0.1", :port "1234"}

How to run the tests

You will need a copy of Etcd running and to set your environment variables appropriately.

lein midje will run all tests.

lein midje namespace.* will run only tests beginning with "namespace.".

lein midje :autotest will run all the tests indefinitely. It sets up a watcher on the code files. If they change, only the relevant tests will be run again.

LICENSE

See LICENSE.md

About

Clojure client library for registrator-managed services.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published