routeinfo

package
v0.0.0-...-a3dc05e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MasterId                 = 0
	ServerChannelExpiredTime = 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteInfo

type RouteInfo struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *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

func (r *RouteInfo) UnregisterServer(clusterName, serverAddr, serverName string, serverId int)

UnregisterServer unregister diamond server too many args???

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL