Documentation ¶
Overview ¶
*
- @Author: DollarKillerX
- @Description: etcd 注册中心
- @Github: https://github.com/dollarkillerx
- @Date: Create in 上午11:34 2020/1/3
Index ¶
- func EtcdInit()
- type Etcd
- func (e *Etcd) GetService(ctx context.Context, node string) (*registered.Service, error)
- func (e *Etcd) Init(ctx context.Context, set ...registered.SetOption) error
- func (e *Etcd) Name() string
- func (e *Etcd) Registry(ctx context.Context, node *registered.Node) (string, error)
- func (e *Etcd) UnRegistry(ctx context.Context, node *registered.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Etcd ¶
type Etcd struct {
// contains filtered or unexported fields
}
func (*Etcd) GetService ¶
服务发现
func (*Etcd) UnRegistry ¶
服务反注册
Click to show internal directories.
Click to hide internal directories.