Documentation ¶
Index ¶
- Constants
- func LogAction(action ETCD_ACTION) zap.Field
- func LogKey(key string) zap.Field
- func LogOk(v bool) zap.Field
- func LogResp(resp interface{}) zap.Field
- func WithAuth(user string, pass string) func(client *Client)
- func WithEndPoints(endPoints ...string) func(client *Client)
- func WithTimeout(timeout time.Duration) func(client *Client)
- type Client
- type ETCD_ACTION
- type Mutex
- type Option
Constants ¶
View Source
const ( ETCD_DELETE = iota ETCD_PUT )
Variables ¶
This section is empty.
Functions ¶
func LogAction ¶ added in v0.1.29
func LogAction(action ETCD_ACTION) zap.Field
func WithEndPoints ¶
func WithTimeout ¶
Types ¶
type Client ¶
type ETCD_ACTION ¶ added in v0.1.29
type ETCD_ACTION int32
func (ETCD_ACTION) ToString ¶ added in v0.1.29
func (this ETCD_ACTION) ToString() string
Click to show internal directories.
Click to hide internal directories.