Versions in this module Expand all Collapse all v1 v1.0.0 Sep 16, 2024 Changes in this version + const Name + func Register(discovery cfacade.IDiscovery) + type Component struct + func New() *Component + func (*Component) Name() string + func (p *Component) Init() + func (p *Component) OnStop() + type DiscoveryDefault struct + func (n *DiscoveryDefault) AddMember(member cfacade.IMember) + func (n *DiscoveryDefault) GetMember(nodeId string) (cfacade.IMember, bool) + func (n *DiscoveryDefault) GetType(nodeId string) (nodeType string, err error) + func (n *DiscoveryDefault) ListByType(nodeType string, filterNodeId ...string) []cfacade.IMember + func (n *DiscoveryDefault) Load(_ cfacade.IApplication) + func (n *DiscoveryDefault) Map() map[string]cfacade.IMember + func (n *DiscoveryDefault) Name() string + func (n *DiscoveryDefault) OnAddMember(listener cfacade.MemberListener) + func (n *DiscoveryDefault) OnRemoveMember(listener cfacade.MemberListener) + func (n *DiscoveryDefault) PreInit() + func (n *DiscoveryDefault) Random(nodeType string) (cfacade.IMember, bool) + func (n *DiscoveryDefault) RemoveMember(nodeId string) + func (n *DiscoveryDefault) Stop() + type DiscoveryNATS struct + func (m *DiscoveryNATS) Load(app cfacade.IApplication) + func (m *DiscoveryNATS) Name() string + func (m *DiscoveryNATS) Stop()