Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdLeader ¶
type EtcdLeader struct {
// contains filtered or unexported fields
}
func NewEtcdLeader ¶
func NewEtcdLeader(endpoints []string, timeout time.Duration) (*EtcdLeader, error)
func (*EtcdLeader) Close ¶
func (e *EtcdLeader) Close() error
func (*EtcdLeader) ElectLeader ¶
func (e *EtcdLeader) ElectLeader(ctx context.Context) error
func (*EtcdLeader) ResignLeadership ¶
func (e *EtcdLeader) ResignLeadership(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.