Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEtcdKVGet = coderr.NewCodeError(coderr.Internal, "etcd KV get failed") ErrEtcdKVGetResponse = coderr.NewCodeError(coderr.Internal, "etcd invalid get value response must only one") ErrEtcdKVPut = coderr.NewCodeError(coderr.Internal, "etcd KV put failed") ErrEtcdKVDelete = coderr.NewCodeError(coderr.Internal, "etcd KV delete failed") )
Functions ¶
func CleanConfig ¶
CleanConfig is used to clean the etcd data for the unit test purpose.
func NewTestSingleConfig ¶
NewTestSingleConfig is used to create an etcd config for the unit test purpose.
Types ¶
type EtcdLeaderGetter ¶
type EtcdLeaderGetter interface {
EtcdLeaderID() uint64
}
type LeaderGetterWrapper ¶
type LeaderGetterWrapper struct {
Server *etcdserver.EtcdServer
}
func (*LeaderGetterWrapper) EtcdLeaderID ¶
func (w *LeaderGetterWrapper) EtcdLeaderID() uint64
Click to show internal directories.
Click to hide internal directories.