Documentation ¶
Overview ¶
Package discovery @Title 服务发现 @Description 服务发现 @Author yr 2024/8/29 下午3:42 @Update yr 2024/8/29 下午3:42
Package discovery @Title title @Description desc @Author pc 2024/11/5 @Update pc 2024/11/5
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDiscovery ¶ added in v1.0.2
func CreateDiscovery(name string) inf.IDiscovery
func Register ¶ added in v1.0.2
func Register(name string, discovery inf.IDiscovery)
Types ¶
type EtcdDiscovery ¶ added in v1.0.2
type EtcdDiscovery struct { inf.IEventProcessor inf.IEventHandler // contains filtered or unexported fields }
func NewDiscovery ¶
func NewDiscovery() *EtcdDiscovery
func (*EtcdDiscovery) Close ¶ added in v1.0.2
func (d *EtcdDiscovery) Close()
func (*EtcdDiscovery) Init ¶ added in v1.0.2
func (d *EtcdDiscovery) Init(eventProcessor inf.IEventProcessor) (err error)
func (*EtcdDiscovery) Start ¶ added in v1.0.2
func (d *EtcdDiscovery) Start()
Click to show internal directories.
Click to hide internal directories.