Documentation ¶
Index ¶
- Constants
- func AfterReLoadConfig(pconfig *Config, old_config *FileConfig, new_config *FileConfig)
- func CommSet(pconfig *Config) bool
- func HandleReportCmd(pconfig *Config, pmsg *comm.ReportMsg)
- func LocalSet(pconfig *Config) bool
- func RecvApplyGroupAuditNotify(pconfig *Config, pnotify *ss.MsgCommonNotify)
- func RecvBatchOnLineNotify(pconfig *Config, pnotify *ss.MsgCommonNotify, src_serv int)
- func RecvChgMemberNotify(pconfig *Config, preq *ss.MsgCommonNotify)
- func RecvCommNotify(pconfig *Config, pnotify *ss.MsgCommonNotify, src_serv int)
- func RecvDelGroupNotify(pconfig *Config, preq *ss.MsgCommonNotify)
- func RecvDispMsg(pconfig *Config, pdisp *ss.MsgDisp)
- func RecvHeartBeatReq(pconfig *Config, preq *ss.MsgHeartBeatReq, from int)
- func RecvKickGroupNotify(pconfig *Config, pnotify *ss.MsgCommonNotify)
- func RecvLoginNotify(pconfig *Config, uid int64, src_serv int)
- func RecvLogoutNotify(pconfig *Config, uid int64, src_serv int)
- func RecvMsg(pconfig *Config) int64
- func RecvNewMsgNotify(pconfig *Config, preq *ss.MsgCommonNotify)
- func RecvReportCmd(arg interface{})
- func RecvUploadFileNotify(pconfig *Config, pnotify *ss.MsgCommonNotify, file_server int)
- func ReportSyncServer(arg interface{})
- func SendHeartBeatMsg(arg interface{})
- func SendNewMsgNotify(pconfig *Config, pnotify *ss.MsgCommonNotify, target_serv int)
- func SendSpecCommNotify(pconfig *Config, disp_target ss.DISP_MSG_TARGET, spec_serv int, ...)
- func SendToDisp(pconfig *Config, hash_v int64, v interface{}) bool
- func SendToServ(pconfig *Config, target_serv int, v interface{}) bool
- func ServerExit(pconfig *Config)
- func ServerStart(pconfig *Config)
- type Config
- type FileConfig
- type Msg
- type UserInfo
- type WorldOnlineUsers
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 RecvApplyGroupAuditNotify ¶
func RecvApplyGroupAuditNotify(pconfig *Config, pnotify *ss.MsgCommonNotify)
func RecvBatchOnLineNotify ¶
func RecvBatchOnLineNotify(pconfig *Config, pnotify *ss.MsgCommonNotify, src_serv int)
func RecvChgMemberNotify ¶
func RecvChgMemberNotify(pconfig *Config, preq *ss.MsgCommonNotify)
func RecvCommNotify ¶
func RecvCommNotify(pconfig *Config, pnotify *ss.MsgCommonNotify, src_serv int)
func RecvDelGroupNotify ¶
func RecvDelGroupNotify(pconfig *Config, preq *ss.MsgCommonNotify)
func RecvDispMsg ¶
func RecvHeartBeatReq ¶
func RecvHeartBeatReq(pconfig *Config, preq *ss.MsgHeartBeatReq, from int)
func RecvKickGroupNotify ¶
func RecvKickGroupNotify(pconfig *Config, pnotify *ss.MsgCommonNotify)
func RecvLoginNotify ¶
func RecvLogoutNotify ¶
func RecvNewMsgNotify ¶
func RecvNewMsgNotify(pconfig *Config, preq *ss.MsgCommonNotify)
func RecvReportCmd ¶
func RecvReportCmd(arg interface{})
func RecvUploadFileNotify ¶
func RecvUploadFileNotify(pconfig *Config, pnotify *ss.MsgCommonNotify, file_server int)
func ReportSyncServer ¶
func ReportSyncServer(arg interface{})
func SendHeartBeatMsg ¶
func SendHeartBeatMsg(arg interface{})
func SendNewMsgNotify ¶
func SendNewMsgNotify(pconfig *Config, pnotify *ss.MsgCommonNotify, target_serv int)
func SendSpecCommNotify ¶
func SendSpecCommNotify(pconfig *Config, disp_target ss.DISP_MSG_TARGET, spec_serv int, pnotify *ss.MsgCommonNotify)
func SendToDisp ¶
send to disp hash if hash_v>0 use hash first; or use rand method
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 // contains filtered or unexported fields }
type FileConfig ¶
type UserInfo ¶
type UserInfo struct {
// contains filtered or unexported fields
}
func GetUserInfo ¶
get online user info @return: nil offline; else *user_info
type WorldOnlineUsers ¶
type WorldOnlineUsers struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.