fxmodel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlagCommunicateType = service.CommandLine.String("commtype", "tcp", "Communicate type, tcp or ws")
)

Functions

func AddLocalService

func AddLocalService(p cellnet.Peer)

func CheckReady

func CheckReady()

func GetLocalService

func GetLocalService(svcName string) cellnet.Peer

func IsAllReady

func IsAllReady() (ret bool)

func LocalServiceStatus

func LocalServiceStatus() string

func MultiPeerString

func MultiPeerString(ms service.MultiPeer) string

func RemoveLocalService

func RemoveLocalService(p cellnet.Peer)

func StopAllService

func StopAllService()

func VisitLocalService

func VisitLocalService(callback func(cellnet.Peer) bool)

Types

type ServiceParameter

type ServiceParameter struct {
	SvcName      string // 服务名,注册到服务发现
	NetProcName  string // cellnet处理器名称
	NetPeerType  string // cellnet的PeerType
	ListenAddr   string // socket侦听地址
	MaxConnCount int    // 最大连接数量
	NoQueue      bool   // 不使用队列
}

Jump to

Keyboard shortcuts

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