Documentation ¶
Index ¶
- func Init(cfg conf.EtcdConfig) error
- func NewResolver(client *Client, scheme string) re.Builder
- func RegisterMethod(client *Client, version, service, method string, auth bool) error
- func UnRegisterMethod(client *Client, version, service, method string) error
- type Client
- func (cl *Client) Cli() *v3.Client
- func (cl *Client) Close() error
- func (cl *Client) GetPattern(key string) (result map[string]string)
- func (cl *Client) GetSingle(key string) string
- func (cl *Client) Kv() v3.KV
- func (cl *Client) RegisterApi(name string, data interface{}, config conf.YamlConfig) error
- func (cl *Client) RegisterService(name, addr string, ttl int64) error
- func (cl *Client) Set(key, value string) bool
- func (cl *Client) UnRegister(name, addr string) error
- func (cl *Client) UnRegisterApi(name string, data interface{}, config conf.YamlConfig) error
- type Method
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(cfg conf.EtcdConfig) error
func RegisterMethod ¶
func UnRegisterMethod ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RegisterApi ¶
func (cl *Client) RegisterApi(name string, data interface{}, config conf.YamlConfig) error
func (*Client) RegisterService ¶
func (*Client) UnRegister ¶
func (*Client) UnRegisterApi ¶
func (cl *Client) UnRegisterApi(name string, data interface{}, config conf.YamlConfig) error
Click to show internal directories.
Click to hide internal directories.