Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalIP ¶
Types ¶
type EtcdRegistryCenter ¶
type EtcdRegistryCenter struct { ErrC chan error // contains filtered or unexported fields }
func NewEtcdRegistryCenter ¶
func NewEtcdRegistryCenter(ctx context.Context, conf *EtcdConf) (reg *EtcdRegistryCenter, err error)
func (*EtcdRegistryCenter) GetServices ¶
func (reg *EtcdRegistryCenter) GetServices(name string) (metas []AppMeta, err error)
func (*EtcdRegistryCenter) Register ¶
func (reg *EtcdRegistryCenter) Register(name string, meta *AppMeta) error
func (*EtcdRegistryCenter) UnRegister ¶
func (reg *EtcdRegistryCenter) UnRegister(name string) (err error)
type RegisterCenter ¶
type RegistryConf ¶
type RegistryConf struct {
Etcd *EtcdConf `yaml:"etcd"`
}
Click to show internal directories.
Click to hide internal directories.