Documentation ¶
Index ¶
- func CheckOrigin(r *http.Request) bool
- type Server
- func (svr *Server) BuildDate() time.Time
- func (svr *Server) Config() serverconfig.Config
- func (svr *Server) GetConnMan() *w3d_connbytemanager.Manager
- func (svr *Server) GetDataVersion() string
- func (svr *Server) GetErrorStat() *w3d_statapierror.StatAPIError
- func (svr *Server) GetLogger() interface{}
- func (svr *Server) GetNotiStat() *w3d_statnoti.StatNotification
- func (svr *Server) GetProtocolStat() *w3d_statserveapi.StatServeAPI
- func (svr *Server) GetProtocolVersion() string
- func (svr *Server) GetRecvStat() *actpersec.ActPerSec
- func (svr *Server) GetRunDur() time.Duration
- func (svr *Server) GetSendStat() *actpersec.ActPerSec
- func (svr *Server) GetServiceLockFilename() string
- func (svr *Server) GetStageMan() *stagemanager.Manager
- func (svr *Server) GetStartTime() time.Time
- func (svr *Server) GetVersion() string
- func (svr *Server) NumGoroutine() int
- func (svr *Server) ServiceCleanup()
- func (svr *Server) ServiceInit() error
- func (svr *Server) ServiceMain(ctx context.Context)
- func (svr *Server) String() string
- func (svr *Server) WrapInfo() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOrigin ¶
Types ¶
type Server ¶
type Server struct { SendStat *actpersec.ActPerSec `prettystring:"simple"` RecvStat *actpersec.ActPerSec `prettystring:"simple"` DemuxReq2BytesAPIFnMap [w3d_idcmd.CommandID_Count]func( me interface{}, hd w3d_packet.Header, rbody []byte) ( w3d_packet.Header, interface{}, error) // contains filtered or unexported fields }
func New ¶
func New(config serverconfig.Config) *Server
func (*Server) Config ¶
func (svr *Server) Config() serverconfig.Config
func (*Server) GetConnMan ¶
func (svr *Server) GetConnMan() *w3d_connbytemanager.Manager
func (*Server) GetDataVersion ¶
func (*Server) GetErrorStat ¶
func (svr *Server) GetErrorStat() *w3d_statapierror.StatAPIError
func (*Server) GetLogger ¶
func (svr *Server) GetLogger() interface{}
called from signal handler return implement signalhandle.LoggerI
func (*Server) GetNotiStat ¶
func (svr *Server) GetNotiStat() *w3d_statnoti.StatNotification
func (*Server) GetProtocolStat ¶
func (svr *Server) GetProtocolStat() *w3d_statserveapi.StatServeAPI
func (*Server) GetProtocolVersion ¶
func (*Server) GetRecvStat ¶
func (*Server) GetSendStat ¶
func (*Server) GetServiceLockFilename ¶
called from signal handler
func (*Server) GetStageMan ¶
func (svr *Server) GetStageMan() *stagemanager.Manager
func (*Server) GetStartTime ¶
func (*Server) GetVersion ¶
func (*Server) NumGoroutine ¶
func (*Server) ServiceMain ¶
called from signal handler
Click to show internal directories.
Click to hide internal directories.