Documentation ¶
Index ¶
Constants ¶
View Source
const SymbolLB = "symbol_lb"
Variables ¶
View Source
var (
NotAvailableConn = status.Error(codes.Unavailable, "no available connection")
)
Functions ¶
func Register ¶ added in v1.2.1
func Register(conf EtcdRegisterConf)
Types ¶
type EtcdConfig ¶
type EtcdConfig struct {
Endpoints []string
}
func (*EtcdConfig) MustNewEtcdClient ¶ added in v1.2.1
func (c *EtcdConfig) MustNewEtcdClient() *clientv3.Client
func (*EtcdConfig) NewEtcdClient ¶
func (c *EtcdConfig) NewEtcdClient() (*clientv3.Client, error)
type EtcdRegisterConf ¶ added in v1.2.1
type EtcdRegisterConf struct { EtcdConf EtcdConfig Key string Value string `json:",optional"` Port int32 `json:",optional"` MataData *attributes.Attributes `json:",optional"` }
Click to show internal directories.
Click to hide internal directories.