Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(rc *grc.RemoteConfig)
Types ¶
type GRCWrapper ¶
type GRCWrapper struct {
// contains filtered or unexported fields
}
func (*GRCWrapper) GetNodes ¶
func (m *GRCWrapper) GetNodes(svc string) map[string]int
GetNodes returns rpc service nodes.
func (*GRCWrapper) RegisterNode ¶
func (m *GRCWrapper) RegisterNode(component, rpcAddr string, rpcSvc []string, ttl time.Duration) (int64, error)
RegisterNode registers rpc address of the component node.
func (*GRCWrapper) RegisteredNode ¶
func (m *GRCWrapper) RegisteredNode(component string) (int64, string)
RegisteredNode returns service unique ID and rpc address registered for the component.
Click to show internal directories.
Click to hide internal directories.