Documentation ¶
Index ¶
- func EndpointStatus(gcfg GlobalConfig, ep string) (*clientv3.StatusResponse, error)
- func Endpoints(gcfg GlobalConfig) ([]string, error)
- func MemberList(gcfg GlobalConfig, eps []string, options ...clientv3.OpOption) (*clientv3.MemberListResponse, error)
- func Metrics(gcfg GlobalConfig, ep string) ([]string, error)
- func Read(gcfg GlobalConfig, eps []string, key string, options ...clientv3.OpOption) (*clientv3.GetResponse, error)
- type GlobalConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndpointStatus ¶
func EndpointStatus(gcfg GlobalConfig, ep string) (*clientv3.StatusResponse, error)
func Endpoints ¶
func Endpoints(gcfg GlobalConfig) ([]string, error)
func MemberList ¶
func MemberList(gcfg GlobalConfig, eps []string, options ...clientv3.OpOption) (*clientv3.MemberListResponse, error)
func Read ¶
func Read(gcfg GlobalConfig, eps []string, key string, options ...clientv3.OpOption) (*clientv3.GetResponse, error)
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { Endpoints []string `json:"endpoints,omitempty"` UseClusterEndpoints bool `json:"useClusterEndpoints,omitempty"` DialTimeout time.Duration `json:"dial-timeout,omitempty"` CommandTimeout time.Duration `json:"command-timeout,omitempty"` KeepAliveTime time.Duration `json:"keep-alive-time,omitempty"` KeepAliveTimeout time.Duration `json:"keep-alive-timeout,omitempty"` Insecure bool `json:"insecure,omitempty"` InsecureDiscovery bool `json:"insecure-discovery,omitempty"` InsecureSkipVerify bool `json:"insecure-skip-verify,omitempty"` CertFile string `json:"cert-file,omitempty"` KeyFile string `json:"key-file,omitempty"` CaFile string `json:"ca-file,omitempty"` DNSDomain string `json:"dns-domain,omitempty"` DNSService string `json:"dns-service,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` DbQuotaBytes int `json:"db-quota-bytes,omitempty"` PrintVersion bool `json:"print-version,omitempty"` }
Click to show internal directories.
Click to hide internal directories.