Documentation ¶
Index ¶
- Constants
- func AfterReLoadConfig(pconfig *Config, old_config *FileConfig, new_config *FileConfig)
- func CommSet(pconfig *Config) bool
- func DispToLogicServ(pconfig *Config, pdisp *ss.MsgDisp, msg []byte)
- func HandleReportCmd(pconfig *Config, pmsg *comm.ReportMsg)
- func LocalSet(pconfig *Config) bool
- func RecvDispMsg(pconfig *Config, pdisp *ss.MsgDisp, from int, msg []byte)
- func RecvHeartBeatReq(pconfig *Config, preq *ss.MsgHeartBeatReq, from int)
- func RecvMsg(pconfig *Config) int64
- func RecvReportCmd(arg interface{})
- func ReportSyncServer(arg interface{})
- func SendHeartBeatMsg(arg interface{})
- func SendToServ(pconfig *Config, target_serv int, v interface{}) bool
- func ServerExit(pconfig *Config)
- func ServerStart(pconfig *Config)
- type Config
- type FileConfig
- type Msg
Constants ¶
View Source
const (
MESSAGE_LEN = ss.MAX_SS_MSG_SIZE //200k
)
Variables ¶
This section is empty.
Functions ¶
func AfterReLoadConfig ¶
func AfterReLoadConfig(pconfig *Config, old_config *FileConfig, new_config *FileConfig)
After ReLoad Config If Need Handle
func HandleReportCmd ¶
func RecvHeartBeatReq ¶
func RecvHeartBeatReq(pconfig *Config, preq *ss.MsgHeartBeatReq, from int)
func RecvReportCmd ¶
func RecvReportCmd(arg interface{})
func ReportSyncServer ¶
func ReportSyncServer(arg interface{})
func SendHeartBeatMsg ¶
func SendHeartBeatMsg(arg interface{})
func SendToServ ¶
@v only support []byte and *ss.SSMsg
func ServerExit ¶
func ServerExit(pconfig *Config)
Types ¶
type Config ¶
type Config struct { //comm NameSpace string ProcId int ProcName string ConfigFile string Daemon bool FileConfig *FileConfig Comm *comm.CommConfig ReportCmd string //used for report cmd ReportCmdToken int64 ReportServ *comm.ReportServ //report to manger }
type FileConfig ¶
Click to show internal directories.
Click to hide internal directories.