Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type ServiceDiscovery ¶
type ServiceDiscovery interface { Add(service *Service) Remove(name string) RemoveAll() AssignLeader(leaderService *Service) RemoveLeader() ReassignLeader() error StartHeartbeat() StopHeartbeat() StartMonitor() StopMonitor() GetAll() []string SetInfo(memberNumber int, totalMembers int) BeLeader() DontBeLeader() }
func NewServiceDiscovery ¶
func NewServiceDiscovery(config *config.Dcp, bus EventBus.Bus) ServiceDiscovery
Click to show internal directories.
Click to hide internal directories.