Documentation ¶
Overview ¶
Package leaderetcd provides a etcd driver for package leader
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdDriver ¶
type EtcdDriver struct {
// contains filtered or unexported fields
}
EtcdDriver implements the Driver. It is used for leader election.
func NewEtcdDriver ¶
func NewEtcdDriver(client *clientv3.Client, keyer contract.Keyer) *EtcdDriver
NewEtcdDriver returns a newly constructed *EtcdDriver
Click to show internal directories.
Click to hide internal directories.