idservice

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

README

idservice

Go Report Card GoDoc

Returns unique version ids via various protocols.

  • HTTP
  • gRPC
  • zeromq
HTTP example
% idservice http -p :8000 -w /path/to/workdir

To use, the client sends a POST request with an optional count:

POST /v1/id

    Returns application/json:
    {"id":1}

POST /v1/id?count=10

    Returns application/json:
    {"ids":[1,10]}
Installation

If you have Go installed, you can install idservice with:

% go install github.com/JaneliaSciComp/idservice@latest

Or you can build from source:

% go get github.com/JaneliaSciComp/idservice
% go build

% idservice --help

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package id provides unique uint64 identifiers for datasets designated by a string.
Package id provides unique uint64 identifiers for datasets designated by a string.

Jump to

Keyboard shortcuts

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