server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct{}

微服务对象,可独立运行tcp服务

func NewServer

func NewServer() *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) Run

func (s *Server) Run()

type ServerMaster

type ServerMaster struct {
	MasterClient *core.TcpClient
}

func GetServerMaster

func GetServerMaster() *ServerMaster

type ServerServer

type ServerServer struct{}

func (*ServerServer) MemberNode

func (m *ServerServer) MemberNode(ss session.Session, input *deal.MemberNodePush) error

func (*ServerServer) ServerHeart

func (s *ServerServer) ServerHeart(ss session.Session, input *deal.Pong) error

心跳返回

func (*ServerServer) ServerStart

func (m *ServerServer) ServerStart(ss session.Session, input *deal.ServerStartResponse) error

节点推送

Jump to

Keyboard shortcuts

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