Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEtcdKVBase ¶
NewEtcdKVBase creates a new etcd kv.
Types ¶
type Base ¶
type Base interface { Load(key string) (string, error) LoadRange(key, endKey string, limit int) (keys []string, values []string, err error) Save(key, value string) error Remove(key string) error }
Base is an abstract interface for load/save pd cluster data.
type SlowLogTxn ¶
SlowLogTxn wraps etcd transaction and log slow one.
func (*SlowLogTxn) Commit ¶
func (t *SlowLogTxn) Commit() (*clientv3.TxnResponse, error)
Commit implements Txn Commit interface.
Click to show internal directories.
Click to hide internal directories.