Versions in this module Expand all Collapse all v1 v1.0.9 Apr 20, 2018 Changes in this version + const NewSessionDefaultRetryCnt + const NewSessionRetryUnlimited + var ManagerSessionTTL = 60 + func GetOwnerInfo(ctx goctx.Context, elec *concurrency.Election, logPrefix, id string) (string, error) + func NewSession(ctx goctx.Context, logPrefix string, etcdCli *clientv3.Client, ...) (*concurrency.Session, error) + type Manager interface + CampaignOwner func(ctx goctx.Context) error + Cancel func() + GetOwnerID func(ctx goctx.Context) (string, error) + ID func() string + IsOwner func() bool + SetOwner func(isOwner bool) + func NewMockManager(id string, cancel goctx.CancelFunc) Manager + func NewOwnerManager(etcdCli *clientv3.Client, prompt, id, key string, cancel goctx.CancelFunc) Manager