Documentation ¶
Overview ¶
Package boiling provides function to generate incremented id based on etcd
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides and manages an boiling client
type Options ¶
type Options struct { Key string // the key name in etcd Buffer int64 // the buffered ids interactive once with etcd Start int64 // the start value of id sequences,which will be ignored if the value already be set, Endpoints []string // etcd endpoints Initial bool // Whether restart from start value }
Options configures how we set up the client.
Click to show internal directories.
Click to hide internal directories.