command
module
Version:
v0.0.0-...-250bf39
Opens a new window with list of versions in this module.
Published: Mar 22, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
uniq
go service to guarantee uniqueness with expirations, in memory storage
uses raft for leader election and haproxy for leader routing/load balancing
Example usage:
$ go run main.go -s
$ curl -X POST -i "http://localhost:11111/cns?key=foo&duration=3600s&value=bar"
HTTP/1.1 200 OK
Date: Wed, 15 Mar 2017 16:10:42 GMT
Content-Length: 4
Content-Type: text/plain; charset=utf-8
bar
$ curl -X POST -i "http://localhost:11111/cns?key=foo&duration=60s"
HTTP/1.1 403 Forbidden
Date: Wed, 15 Mar 2017 16:10:43 GMT
Content-Length: 4
Content-Type: text/plain; charset=utf-8
bar
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
|
Package memoryStore is a generated protocol buffer package.
|
Package memoryStore is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.