cluster

package
v0.0.0-...-2f8f7b3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMasterNodeServer

type IMasterNodeServer interface {
	// 保存服务器信息
	SaveServer(serverInfo *pb.ServerReport)
	SyncServer(session ISession)

	InitNetServer(ip string, port int)
}

type MasterNodeServer

type MasterNodeServer struct {

	// 继承自 nodeservice
	INodeService
	// contains filtered or unexported fields
}

func NewMasterNodeServer

func NewMasterNodeServer() *MasterNodeServer

func (*MasterNodeServer) AddRouter

func (s *MasterNodeServer) AddRouter()

func (*MasterNodeServer) InitNetServer

func (s *MasterNodeServer) InitNetServer(ip string, port int)

func (*MasterNodeServer) SaveServer

func (s *MasterNodeServer) SaveServer(serverInfo *pb.ServerReport)

func (*MasterNodeServer) SyncServer

func (s *MasterNodeServer) SyncServer(session ISession)

type MasterServer

type MasterServer struct {
	IBaseServer
	// contains filtered or unexported fields
}

func NewMasterServer

func NewMasterServer() *MasterServer

type ServerInfoMap

type ServerInfoMap map[int32]*pb.ServerReport

type ServerRouter

type ServerRouter struct {
	BaseRouter
}

define master router

func (*ServerRouter) Handle

func (router *ServerRouter) Handle(request IRequest) MsgErrCode

Jump to

Keyboard shortcuts

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