https://github.com/updcon/libpinkas-clj
Basic registry operations for microservices in Clojure
https://github.com/updcon/libpinkas-clj
clj clojure-library cloud consul dkdhub microservices tiny tiny-library
Last synced: 3 months ago
JSON representation
Basic registry operations for microservices in Clojure
- Host: GitHub
- URL: https://github.com/updcon/libpinkas-clj
- Owner: updcon
- License: mit
- Created: 2019-04-30T12:01:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T19:15:39.000Z (about 5 years ago)
- Last Synced: 2025-06-23T06:46:23.263Z (4 months ago)
- Topics: clj, clojure-library, cloud, consul, dkdhub, microservices, tiny, tiny-library
- Language: Clojure
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= libpinkas-clj
A Clojure library designed to support basic registry operations
for microservices with Consul service by HashiCorp.Heavily inspired by clj-consul-catalog.
image:https://img.shields.io/clojars/v/updcon/libpinkas-clj.svg[]
== Usage
.project.clj
[source,clojure]
----
[updcon/libpinkas-clj "0.0.5"]
----.example.clj
[source, clojure]
----
(ns my-app.jasper
(:require [libpinkas-clj.core :refer :all]
[clojure.core.async :refer [timeout Starting Consul agent...
Version: '1.8.4'
Node ID: '25c675d4-ce4a-c35b-420f-d8ff12469a5f'
Node name: 'localhost.localdomain'
Datacenter: 'dc1' (Segment: '')
Server: true (Bootstrap: false)
Client Addr: [127.0.0.1] (HTTP: 8500, HTTPS: -1, gRPC: 8502, DNS: 8600)
Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302)
Encrypt: Gossip: false, TLS-Outgoing: false, TLS-Incoming: false, Auto-Encrypt-TLS: false
..............
==> Consul agent running!
----=== Self tests
Run Consul
[source, shell]
----
$ consul agent -dev
----Run tests
[source, shell]
----
$ cd /path/to/libpinkas-clj
$ lein testlein test libpinkas-clj.core-test
Ran 3 tests containing 9 assertions.
0 failures, 0 errors.----
Enjoy!
== License
Copyright © 2019-2020 UPDC (UPD Consutlting Ltd)
Distributed under the MIT License.