Versions in this module Expand all Collapse all v1 v1.2.1 Aug 16, 2018 v1.2.0 Jun 22, 2018 Changes in this version + type Errors struct + Close error + GetMaster error + IsMaster error + Resign error + Start error + Wait error + func ErrAll(err error) *Errors + type MasterElection struct + func NewMasterElection(isMaster bool, errs *Errors) *MasterElection + func (e *MasterElection) Close(context.Context) error + func (e *MasterElection) GetCurrentMaster(context.Context) (string, error) + func (e *MasterElection) IsMaster(context.Context) (bool, error) + func (e *MasterElection) Resign(context.Context) error + func (e *MasterElection) Start(context.Context) error + func (e *MasterElection) Update(isMaster bool, errs *Errors) + func (e *MasterElection) WaitForMastership(ctx context.Context) error