Documentation ¶
Index ¶
- Constants
- type RouteInfo
- func (r *RouteInfo) GetAllClusterInfo() protocol.ClusterInfo
- func (r *RouteInfo) RegisterServer(clusterName, serverAddr, serverName, haServerAddr string, serverId int, ...) *namesrv.RegisterResponse
- func (r *RouteInfo) ScanNotActiveServer()
- func (r *RouteInfo) UnregisterServer(clusterName, serverAddr, serverName string, serverId int)
Constants ¶
View Source
const ( MasterId = 0 ServerChannelExpiredTime = 60 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteInfo ¶
func (*RouteInfo) GetAllClusterInfo ¶
func (r *RouteInfo) GetAllClusterInfo() protocol.ClusterInfo
GetAllClusterInfo
func (*RouteInfo) RegisterServer ¶
func (r *RouteInfo) RegisterServer(clusterName, serverAddr, serverName, haServerAddr string, serverId int, conn gnet.Conn) *namesrv.RegisterResponse
RegisterServer diamond server register it self,namesrv will keep it in mem too many args?
func (*RouteInfo) ScanNotActiveServer ¶
func (r *RouteInfo) ScanNotActiveServer()
ScanNotActiveServer namesrv will scheduled invoke this method to delete unlive diamond server
func (*RouteInfo) UnregisterServer ¶
UnregisterServer unregister diamond server too many args???
Click to show internal directories.
Click to hide internal directories.