Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { sync.RWMutex // component -> addresses Addresses map[string][]string `json:"address"` // contains filtered or unexported fields }
Manager is used to manage components.
func NewManager ¶
NewManager creates a new component manager.
func (*Manager) GetAllComponentAddrs ¶
GetAllComponentAddrs returns all components' addresses.
func (*Manager) GetComponent ¶
GetComponent returns the component from a given component ID.
func (*Manager) GetComponentAddrs ¶
GetComponentAddrs returns component addresses for a given component.
func (*Manager) UnRegister ¶
UnRegister is used for unregistering a component with an address from PD.
Click to show internal directories.
Click to hide internal directories.