v1

package
v0.0.0-...-e20221d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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) GetLeader

func (e *EtcdLeader) GetLeader(ctx context.Context) (string, error)

func (*EtcdLeader) ResignLeadership

func (e *EtcdLeader) ResignLeadership(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL