server

package
v0.0.0-...-948f7eb Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOrigin

func CheckOrigin(r *http.Request) bool

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) BuildDate

func (svr *Server) BuildDate() time.Time

func (*Server) Config

func (svr *Server) Config() serverconfig.Config

func (*Server) GetConnMan

func (svr *Server) GetConnMan() *w3d_connbytemanager.Manager

func (*Server) GetDataVersion

func (svr *Server) GetDataVersion() string

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 (svr *Server) GetProtocolVersion() string

func (*Server) GetRecvStat

func (svr *Server) GetRecvStat() *actpersec.ActPerSec

func (*Server) GetRunDur

func (svr *Server) GetRunDur() time.Duration

func (*Server) GetSendStat

func (svr *Server) GetSendStat() *actpersec.ActPerSec

func (*Server) GetServiceLockFilename

func (svr *Server) GetServiceLockFilename() string

called from signal handler

func (*Server) GetStageMan

func (svr *Server) GetStageMan() *stagemanager.Manager

func (*Server) GetStartTime

func (svr *Server) GetStartTime() time.Time

func (*Server) GetVersion

func (svr *Server) GetVersion() string

func (*Server) NumGoroutine

func (svr *Server) NumGoroutine() int

func (*Server) ServiceCleanup

func (svr *Server) ServiceCleanup()

called from signal handler

func (*Server) ServiceInit

func (svr *Server) ServiceInit() error

called from signal handler

func (*Server) ServiceMain

func (svr *Server) ServiceMain(ctx context.Context)

called from signal handler

func (*Server) String

func (svr *Server) String() string

func (*Server) WrapInfo

func (svr *Server) WrapInfo() string

Jump to

Keyboard shortcuts

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