Versions in this module Expand all Collapse all v0 v0.9.1 Sep 26, 2019 Changes in this version + const Password + const Username + type Embed interface + Init func(ctx context.Context, option ...Option) (err error) + IsLeader func() bool + Run func(ready chan struct{}) (err error) + SetAuth func(username, password string) (err error) + func NewEmbed() Embed + type Option func(opts *Options) + func WithClientPort(cp string) Option + func WithCluster(clu []string) Option + func WithClusterState(state string) Option + func WithDir(dir string) Option + func WithIP(ip string) Option + func WithName(name string) Option + func WithPeerPort(pp string) Option + type Options struct + ClientPort string + Cluster []string + ClusterState string + Dir string + IP string + Name string + PeerPort string