Documentation ¶
Overview ¶
Code generated by tool/convert DO NOT EDIT!
Code generated by tool/convert DO NOT EDIT!
Code generated by tool/convert DO NOT EDIT!
Code generated by tool/convert DO NOT EDIT!
Code generated by tool/convert DO NOT EDIT!
Code generated by tool/convert DO NOT EDIT!
Code generated by tool/convert DO NOT EDIT!
Code generated by tool/convert DO NOT EDIT!
Code generated by tool/convert DO NOT EDIT!
Code generated by tool/convert DO NOT EDIT!
Index ¶
- Variables
- func UpdateAgent(v *Agent)
- func UpdateCenter(v *Center)
- func UpdateCoordinator(v *Coordinator)
- func UpdateDispatcher(v *Dispatcher)
- func UpdateGateway(v *Gateway)
- func UpdateGlobal(v *Global)
- func UpdateRouter(v *Router)
- func UpdateSaver(v *Saver)
- func UpdateSession(v *Session)
- type Agent
- type Center
- type Coordinator
- type Dispatcher
- type Gateway
- type Global
- type Router
- type Saver
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var CoordinatorPtr unsafe.Pointer = unsafe.Pointer(&Coordinator{})
View Source
var DispatcherPtr unsafe.Pointer = unsafe.Pointer(&Dispatcher{})
View Source
var ObjectsContainer = &container{ s: map[string]interface{}{ "Coordinator": Coordinator{}, "Gateway": Gateway{}, "Global": Global{}, "Saver": Saver{}, "Session": Session{}, "Agent": Agent{}, "Dispatcher": Dispatcher{}, "Router": Router{}, "Center": Center{}, }, }
Functions ¶
func UpdateAgent ¶
func UpdateAgent(v *Agent)
func UpdateCenter ¶
func UpdateCenter(v *Center)
func UpdateCoordinator ¶
func UpdateCoordinator(v *Coordinator)
func UpdateDispatcher ¶
func UpdateDispatcher(v *Dispatcher)
func UpdateGateway ¶
func UpdateGateway(v *Gateway)
func UpdateGlobal ¶
func UpdateGlobal(v *Global)
func UpdateRouter ¶
func UpdateRouter(v *Router)
func UpdateSaver ¶
func UpdateSaver(v *Saver)
func UpdateSession ¶
func UpdateSession(v *Session)
Types ¶
type Agent ¶
func CurrentAgent ¶
func CurrentAgent() *Agent
type Center ¶
type Center struct { AdminListen string ChatCheckMd5 bool ChatDefaultExpireTime int ChatDefaultHotExpireTime int ChatroomBroadcastPolicy int ChatroomDegradeMembers int ChatroomDegradePolicy int ChatroomDiscardMessages map[int]int ChatroomMessagePolicy map[int]int CrDropMsgsDtDefault map[int]int CrDropMsgsDtPolicy string GorpcListen string Listen string Loglevel int MaxMsgSize int MessageMaxDelay int MessageSendInterval string MultiListen []string OnlineBroadcastPolicy int QpsCountInterval int QpsLimits map[string]int ResponseSlowThreshold int64 SendPublicNotificationAfter int ShardId int SpecialMessageType map[string]struct{} StatResponseTime bool StoreImOutbox int }
func CurrentCenter ¶
func CurrentCenter() *Center
type Coordinator ¶
type Coordinator struct { AdapterLiveDuration int AdjustInterval int AdminListen string BigRoomMember int ChatroomCounterExpire int ChatroomCounterSlot int ChatroomCounterUploadInterval int ChatroomDegradeMembers int ChatroomDegradePolicy int CommonFilter map[int]string CompressComplex bool CompressNormal bool CompressWeb bool CrDropMsgsDtDefault map[int]int CrDropMsgsDtPolicy string DefaultMsgSend int DefaultMsgSendSr map[string]int GorpcListen string Loglevel int MaxCacheNumPerSec int MaxCacheSec int MaxCacheWhiteListSec int MaxKeepMsgs int MaxMsgSend int MaxMsgSendSr map[string]int MinMsgSend int MinMsgSendSr map[string]int MsgCountDecreaseStep int MsgCountIncreaseStep int MsgPushInterval int MsgSendBlockSize int MsgSendInterval int MsgTypeMap map[string][]string MsgTypeRatio map[string]int ServerRooms []string SrFlow map[string]string SrFlowBase int SrFlowFloatingRange int StatFadeTime int StaticMsgSend map[string]int SuperUsers []string WebMoreMsgCount map[string]int WebMoreMsgPriority int WebMoreMsgType int WhiteListCluster string }
func CurrentCoordinator ¶
func CurrentCoordinator() *Coordinator
type Dispatcher ¶
type Dispatcher struct { AdminListen string GatewayWeight map[string]int GorpcListen string Listen string Loglevel int MaxGateways int NeedSign bool PrivateKey string SslListen string StatInterval int WhiteListAddr map[string]int WhiteListUser map[string]struct{} ZoneGatewayweight map[string][]string }
func CurrentDispatcher ¶
func CurrentDispatcher() *Dispatcher
type Gateway ¶
type Gateway struct { AdminListen string ChatroomMsgNormalThreshold int64 ChatroomMsgSlowThreshold int64 GorpcListen string IgnoreWebsocket bool Listen string Loglevel int Manager string MultiListen []string OperationSlowThreshold int64 QpsCountInterval int ResponseSlowThreshold int64 StatResponseTime bool TagCleanDuration int TagConsumerChanLen int64 TagConsumerCount int64 }
func CurrentGateway ¶
func CurrentGateway() *Gateway
type Global ¶
type Global struct { ApnsRpcs []string Appids []string BigRoom map[string]struct{} CenterRpcs []string Cluster string CoordinatorArea map[string][]string CoordinatorRpcs []string Debug bool DefaultKeys map[string]string GatewayRpcs []string GatewayRpcsSr map[string][]string GroupSaverRpcs []string NewChatroomSend bool PullLost map[string]bool RouterRpcs []string SaverRpcs []string SessionRpcs []string StaticRoomCoordinator map[string][]string WhiteList map[string]struct{} }
func CurrentGlobal ¶
func CurrentGlobal() *Global
type Router ¶
type Router struct { AdminListen string BlackIp map[string]bool CallbackConnTimeout int64 CallbackDisable bool CallbackMaxIdleConns int CallbackTimeout int64 CallbackUrl map[string]string CheckAppUser bool CheckWebUser bool DisableEncrypt bool DoOperationsConsumerChanlen int DoOperationsConsumerCount int GorpcListen string GorpcSaverClientTimeout map[string]string IgnoreChatroomErrors bool Loglevel int MaxPullMessage int PushDegrade map[string]int PushDegradeAll bool PushDegradeUsers map[string]struct{} QpsCountInterval int QueryAfterSeconds int SendPublicRandMax int SendPublicRandMin int StatResponseTime bool WebConnectionTypes map[string]struct{} }
func CurrentRouter ¶
func CurrentRouter() *Router
type Saver ¶
type Saver struct { AdminListen string AlternativeMessageMongo []string AlternativeMessageMongoPorts []string AppidTablesSuffix map[int]string CacheChatroomMessageConsumerChanlen int CacheChatroomMessageConsumerCount int ChatroomGatewaysDegrade bool ChatroomMembersDegrade bool ChatroomMessageAddrs []string ChatroomMessageTimeout int64 DefaultExpire int GorpcListen string Loglevel int MaxPublicCache int MaxSessionSummary int MessageMongo []string MessageMongoPorts []string MessageRedis []string MessageStore int MongoTimeout int64 QpsCountInterval int ReloadPublicInterval int ResponseSlowThreshold int64 SessionAddrs []string SessionCheckInterval int StatResponseTime bool }
func CurrentSaver ¶
func CurrentSaver() *Saver
type Session ¶
type Session struct { AdminListen string CallbackConnTimeout int64 CallbackDegradeQps int CallbackMaxIdleConns int CallbackTimeout int64 ChatRoomMinDuration int ChatRoomTimerHour int ChatRoomTimerMinute int ChatroomCallbackUrl map[string]string ChatroomNotifyPolicy map[int]int GorpcListen string Loglevel int OnlineCacheCap int OnlineCacheExpire int OnlineCacheSlot int PostponeCallbackDuration int QpsCountInterval int ResponseSlowThreshold int64 SessionTimerHour int SessionTimerMinute int StatResponseTime bool }
func CurrentSession ¶
func CurrentSession() *Session
Click to show internal directories.
Click to hide internal directories.