multi

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ticker = 5 // 定时器间隔时间 / s
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AllService

type AllService struct {
	AppId     uint32
	PlayerNum int64
}

type Multi

type Multi struct {
	Config *config.Config
	AppId  uint32

	Node *NodeService

	Ticker *time.Ticker

	Stop chan struct{}
	// contains filtered or unexported fields
}

func NewMulti

func NewMulti(cfg *config.Config, appid string, store *db.Store) *Multi

func (*Multi) Close

func (s *Multi) Close()

func (*Multi) GlobalRotationEvent

func (s *Multi) GlobalRotationEvent()

func (*Multi) StartMultiServer

func (s *Multi) StartMultiServer() error

type NodeService

type NodeService struct {
	Addr string
	// contains filtered or unexported fields
}

func (*NodeService) MultiToNodePingReq

func (n *NodeService) MultiToNodePingReq()

func (*NodeService) MultiToNodePingRsp

func (n *NodeService) MultiToNodePingRsp(serviceMsg pb.Message)

func (*NodeService) ServiceConnectionReq

func (n *NodeService) ServiceConnectionReq()

向node注册

func (*NodeService) ServiceConnectionRsp

func (n *NodeService) ServiceConnectionRsp(serviceMsg pb.Message)

Jump to

Keyboard shortcuts

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