uniq

command module
v0.0.0-...-250bf39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package memoryStore is a generated protocol buffer package.
Package memoryStore is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL