Documentation ¶
Index ¶
- type Etcd
- func (self *Etcd) DeleteLocalHost(key string) error
- func (self *Etcd) DeleteLocalRoute(keyStr string) error
- func (self *Etcd) DeleteLocalService(key string) error
- func (self *Etcd) DeleteStorageHost(hostname string) error
- func (self *Etcd) DeleteStorageRoute(routeGroupID, routePath, routeMethod string) error
- func (self *Etcd) DeleteStorageService(serviceID string) error
- func (self *Etcd) LoadAll() (err error)
- func (self *Etcd) LoadAllHost() error
- func (self *Etcd) LoadAllRoute() error
- func (self *Etcd) LoadAllService() error
- func (self *Etcd) LoadHost(key string, data []byte) error
- func (self *Etcd) LoadRoute(key string, data []byte) error
- func (self *Etcd) LoadService(data []byte) error
- func (v Etcd) MarshalEasyJSON(w *jwriter.Writer)
- func (v Etcd) MarshalJSON() ([]byte, error)
- func (self *Etcd) SaveAll() (err error)
- func (self *Etcd) SaveAllHost() error
- func (self *Etcd) SaveAllRoute() (err error)
- func (self *Etcd) SaveAllService() error
- func (self *Etcd) SaveHost(hostname, config string) (err error)
- func (self *Etcd) SaveRoute(routeGroupID, routePath, routeMethod, serviceID string) error
- func (self *Etcd) SaveService(serviceID, config string) error
- func (v *Etcd) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Etcd) UnmarshalJSON(data []byte) error
- func (self *Etcd) Watch() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Etcd ¶
type Etcd struct { ClientID string `json:"-"` KeyPrefix string `json:"key_prefix"` Endpoints []string `json:"endpoints"` DialTimeout uint `json:"dial_timeout"` Username string `json:"username"` Password string `json:"password"` AutoSyncInterval uint `json:"auto_sync_interval"` DialKeepAliveTime uint `json:"dial_keep_alive_time"` DialKeepAliveTimeout uint `json:"dial_keep_alive_timeout"` MaxCallSendMsgSize uint `json:"max_call_send_msg_size"` MaxCallRecvMsgSize uint `json:"max_call_recv_msg_size"` RejectOldCluster bool `json:"reject_old_cluster"` PermitWithoutStream bool `json:"permit_without_stream"` // contains filtered or unexported fields }
func (*Etcd) DeleteStorageHost ¶
删除存储器中主机数据
func (*Etcd) DeleteStorageRoute ¶
删除存储器中路由数据
func (*Etcd) DeleteStorageService ¶
删除本地服务数据
func (Etcd) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Etcd) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Etcd) SaveService ¶
将本地服务数据保存到存储器
func (*Etcd) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Etcd) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Source Files ¶
Click to show internal directories.
Click to hide internal directories.