Documentation ¶
Index ¶
- func GetRpcClient(nodeId int, serviceMethod string, clientList *[]*rpc.Client) error
- func GetRpcServer() *rpc.Server
- func SetConfigDir(cfgdir string)
- type Cluster
- func (slf *Cluster) FindRpcHandler(servicename string) rpc.IRpcHandler
- func (slf *Cluster) GetNodeIdByService(servicename string, rpcClientList *[]*rpc.Client)
- func (slf *Cluster) GetRpcClient(nodeid int) *rpc.Client
- func (slf *Cluster) GetServiceCfg(nodeid int, servicename string) interface{}
- func (slf *Cluster) Init(currentNodeId int) error
- func (slf *Cluster) InitCfg(currentNodeId int) error
- func (slf *Cluster) IsConfigService(servicename string) bool
- func (slf *Cluster) IsNodeConnected(nodeId int) bool
- func (slf *Cluster) ReadAllSubNetConfig() error
- func (slf *Cluster) ReadClusterConfig(filepath string) (*SubNet, error)
- func (slf *Cluster) ReadLocalSubNetServiceConfig(subnet string) error
- func (slf *Cluster) ReadServiceConfig(filepath string) (map[string]interface{}, map[int]map[string]interface{}, error)
- func (slf *Cluster) Start()
- type NodeInfo
- type NodeRpcInfo
- type SubNet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRpcClient ¶
func GetRpcServer ¶
func SetConfigDir ¶
func SetConfigDir(cfgdir string)
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func GetCluster ¶
func GetCluster() *Cluster
func (*Cluster) FindRpcHandler ¶
func (slf *Cluster) FindRpcHandler(servicename string) rpc.IRpcHandler
func (*Cluster) GetNodeIdByService ¶
func (*Cluster) GetServiceCfg ¶
func (*Cluster) IsConfigService ¶
func (*Cluster) IsNodeConnected ¶
func (*Cluster) ReadAllSubNetConfig ¶
func (*Cluster) ReadClusterConfig ¶
func (*Cluster) ReadLocalSubNetServiceConfig ¶
func (*Cluster) ReadServiceConfig ¶
type NodeRpcInfo ¶
type NodeRpcInfo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.