fserver

package
Version: v0.0.0-...-2d5d85b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer() iface.Iserver

func NewTcpServer

func NewTcpServer(name string, version string, ip string, port int, maxConn int, protoc iface.IServerProtocol) iface.Iserver

Types

type Server

type Server struct {
	Name      string
	IPVersion string
	IP        string
	Port      int
	MaxConn   int
	GenNum    *utils.UUIDGenerator

	Protoc iface.IServerProtocol
	// contains filtered or unexported fields
}

func (*Server) AddRouter

func (this *Server) AddRouter(router interface{})

func (*Server) CallLater

func (this *Server) CallLater(durations time.Duration, f func(v ...interface{}), args ...interface{})

func (*Server) CallLoop

func (this *Server) CallLoop(durations time.Duration, f func(v ...interface{}), args ...interface{})

func (*Server) CallWhen

func (this *Server) CallWhen(ts string, f func(v ...interface{}), args ...interface{})

func (*Server) GetConnectionMgr

func (this *Server) GetConnectionMgr() iface.Iconnectionmgr

func (*Server) GetConnectionQueue

func (this *Server) GetConnectionQueue() chan interface{}

func (*Server) Serve

func (this *Server) Serve()

func (*Server) Start

func (this *Server) Start()

func (*Server) Stop

func (this *Server) Stop()

func (*Server) WaitSignal

func (this *Server) WaitSignal()

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL