Documentation
¶
Index ¶
- func NewServer() iface.Iserver
- func NewTcpServer(name string, version string, ip string, port int, maxConn int, ...) iface.Iserver
- type Server
- func (this *Server) AddRouter(router interface{})
- func (this *Server) CallLater(durations time.Duration, f func(v ...interface{}), args ...interface{})
- func (this *Server) CallLoop(durations time.Duration, f func(v ...interface{}), args ...interface{})
- func (this *Server) CallWhen(ts string, f func(v ...interface{}), args ...interface{})
- func (this *Server) GetConnectionMgr() iface.Iconnectionmgr
- func (this *Server) GetConnectionQueue() chan interface{}
- func (this *Server) Serve()
- func (this *Server) Start()
- func (this *Server) Stop()
- func (this *Server) WaitSignal()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) GetConnectionMgr ¶
func (this *Server) GetConnectionMgr() iface.Iconnectionmgr
func (*Server) GetConnectionQueue ¶
func (this *Server) GetConnectionQueue() chan interface{}
func (*Server) WaitSignal ¶
func (this *Server) WaitSignal()
Click to show internal directories.
Click to hide internal directories.