Documentation ¶
Index ¶
- type Bool
- func (*Bool) Descriptor() ([]byte, []int)
- func (m *Bool) GetValue() bool
- func (*Bool) ProtoMessage()
- func (m *Bool) Reset()
- func (m *Bool) String() string
- func (m *Bool) XXX_DiscardUnknown()
- func (m *Bool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bool) XXX_Merge(src proto.Message)
- func (m *Bool) XXX_Size() int
- func (m *Bool) XXX_Unmarshal(b []byte) error
- type Bytes
- func (*Bytes) Descriptor() ([]byte, []int)
- func (m *Bytes) GetValue() []byte
- func (*Bytes) ProtoMessage()
- func (m *Bytes) Reset()
- func (m *Bytes) String() string
- func (m *Bytes) XXX_DiscardUnknown()
- func (m *Bytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bytes) XXX_Merge(src proto.Message)
- func (m *Bytes) XXX_Size() int
- func (m *Bytes) XXX_Unmarshal(b []byte) error
- type ClientList
- func (*ClientList) Descriptor() ([]byte, []int)
- func (m *ClientList) GetClientList() []uint64
- func (*ClientList) ProtoMessage()
- func (m *ClientList) Reset()
- func (m *ClientList) String() string
- func (m *ClientList) XXX_DiscardUnknown()
- func (m *ClientList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientList) XXX_Merge(src proto.Message)
- func (m *ClientList) XXX_Size() int
- func (m *ClientList) XXX_Unmarshal(b []byte) error
- type EventRouterInfo
- type GateProxyModule
- type ILoadBalance
- type IRouter
- type Int
- func (*Int) Descriptor() ([]byte, []int)
- func (m *Int) GetValue() int32
- func (*Int) ProtoMessage()
- func (m *Int) Reset()
- func (m *Int) String() string
- func (m *Int) XXX_DiscardUnknown()
- func (m *Int) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Int) XXX_Merge(src proto.Message)
- func (m *Int) XXX_Size() int
- func (m *Int) XXX_Unmarshal(b []byte) error
- type Int64
- func (*Int64) Descriptor() ([]byte, []int)
- func (m *Int64) GetValue() int64
- func (*Int64) ProtoMessage()
- func (m *Int64) Reset()
- func (m *Int64) String() string
- func (m *Int64) XXX_DiscardUnknown()
- func (m *Int64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Int64) XXX_Merge(src proto.Message)
- func (m *Int64) XXX_Size() int
- func (m *Int64) XXX_Unmarshal(b []byte) error
- type LoadBalance
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)
- func (*Msg) ExtensionRangeArray() []proto.ExtensionRange
- func (m *Msg) GetHead() *MsgHead
- func (m *Msg) GetRet() int32
- func (*Msg) ProtoMessage()
- func (m *Msg) Reset()
- func (m *Msg) String() string
- func (m *Msg) XXX_DiscardUnknown()
- func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Msg) XXX_Merge(src proto.Message)
- func (m *Msg) XXX_Size() int
- func (m *Msg) XXX_Unmarshal(b []byte) error
- type MsgHead
- func (*MsgHead) Descriptor() ([]byte, []int)
- func (m *MsgHead) GetCid() int32
- func (*MsgHead) ProtoMessage()
- func (m *MsgHead) Reset()
- func (m *MsgHead) String() string
- func (m *MsgHead) XXX_DiscardUnknown()
- func (m *MsgHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgHead) XXX_Merge(src proto.Message)
- func (m *MsgHead) XXX_Size() int
- func (m *MsgHead) XXX_Unmarshal(b []byte) error
- type MsgRouterInfo
- type MsgTypeRouterInfo
- type PlaceHolders
- func (*PlaceHolders) Descriptor() ([]byte, []int)
- func (*PlaceHolders) ProtoMessage()
- func (m *PlaceHolders) Reset()
- func (m *PlaceHolders) String() string
- func (m *PlaceHolders) XXX_DiscardUnknown()
- func (m *PlaceHolders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlaceHolders) XXX_Merge(src proto.Message)
- func (m *PlaceHolders) XXX_Size() int
- func (m *PlaceHolders) XXX_Unmarshal(b []byte) error
- type RawInputArgs
- type ReplyMessage
- func (*ReplyMessage) Descriptor() ([]byte, []int)
- func (m *ReplyMessage) GetClientList() []uint64
- func (m *ReplyMessage) GetMsg() []byte
- func (m *ReplyMessage) GetMsgType() uint32
- func (*ReplyMessage) ProtoMessage()
- func (m *ReplyMessage) Reset()
- func (m *ReplyMessage) String() string
- func (m *ReplyMessage) XXX_DiscardUnknown()
- func (m *ReplyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyMessage) XXX_Merge(src proto.Message)
- func (m *ReplyMessage) XXX_Size() int
- func (m *ReplyMessage) XXX_Unmarshal(b []byte) error
- type Router
- func (r *Router) GetEventRouterService(eventType string) *EventRouterInfo
- func (r *Router) GetMsgRouterService(msgType uint16) *MsgRouterInfo
- func (r *Router) GetRouterId(clientId uint64, serviceName *string) int
- func (r *Router) Load()
- func (r *Router) OnConnected(clientId uint64)
- func (r *Router) OnDisconnected(clientId uint64)
- func (r *Router) RouterEvent(clientId uint64, eventType string) bool
- func (r *Router) RouterMessage(cliId uint64, msgType uint16, msg []byte)
- func (r *Router) SetRouterId(clientId uint64, serviceName string, routerId int)
- type RouterCfg
- type String
- func (*String) Descriptor() ([]byte, []int)
- func (m *String) GetValue() string
- func (*String) ProtoMessage()
- func (m *String) Reset()
- func (m *String) String() string
- func (m *String) XXX_DiscardUnknown()
- func (m *String) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *String) XXX_Merge(src proto.Message)
- func (m *String) XXX_Size() int
- func (m *String) XXX_Unmarshal(b []byte) error
- type TcpGateService
- func (gateService *TcpGateService) OnInit() error
- func (gateService *TcpGateService) OnLoad()
- func (gateService *TcpGateService) RPC_Dispatch(replyMsg *ReplyMessage) error
- func (gateService *TcpGateService) SetEventChannel(channelNum int)
- func (gateService *TcpGateService) SetLoadBalance(loadBalance ILoadBalance)
- func (gateService *TcpGateService) SetRawProcessor(processor processor.IRawProcessor)
- func (gateService *TcpGateService) SetRouter(router IRouter)
- func (gateService *TcpGateService) SetTcpGateService(tcpService *tcpservice.TcpService)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct { Value *bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Bool) Descriptor ¶
func (*Bool) ProtoMessage ¶
func (*Bool) ProtoMessage()
func (*Bool) XXX_DiscardUnknown ¶
func (m *Bool) XXX_DiscardUnknown()
func (*Bool) XXX_Unmarshal ¶
type Bytes ¶
type Bytes struct { Value []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Bytes) Descriptor ¶
func (*Bytes) ProtoMessage ¶
func (*Bytes) ProtoMessage()
func (*Bytes) XXX_DiscardUnknown ¶
func (m *Bytes) XXX_DiscardUnknown()
func (*Bytes) XXX_Marshal ¶
func (*Bytes) XXX_Unmarshal ¶
type ClientList ¶
type ClientList struct { ClientList []uint64 `protobuf:"varint,1,rep,name=clientList" json:"clientList,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientList) Descriptor ¶
func (*ClientList) Descriptor() ([]byte, []int)
func (*ClientList) GetClientList ¶
func (m *ClientList) GetClientList() []uint64
func (*ClientList) ProtoMessage ¶
func (*ClientList) ProtoMessage()
func (*ClientList) Reset ¶
func (m *ClientList) Reset()
func (*ClientList) String ¶
func (m *ClientList) String() string
func (*ClientList) XXX_DiscardUnknown ¶
func (m *ClientList) XXX_DiscardUnknown()
func (*ClientList) XXX_Marshal ¶
func (m *ClientList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientList) XXX_Merge ¶
func (m *ClientList) XXX_Merge(src proto.Message)
func (*ClientList) XXX_Size ¶
func (m *ClientList) XXX_Size() int
func (*ClientList) XXX_Unmarshal ¶
func (m *ClientList) XXX_Unmarshal(b []byte) error
type EventRouterInfo ¶
type GateProxyModule ¶
func NewGateProxyModule ¶
func NewGateProxyModule() *GateProxyModule
func (*GateProxyModule) Send ¶
func (gate *GateProxyModule) Send(clientId interface{}, msgType uint16, msg proto.Message) error
func (*GateProxyModule) SetDefaultGateRpcMethodName ¶
func (gate *GateProxyModule) SetDefaultGateRpcMethodName(rpcMethodName string)
type ILoadBalance ¶
type IRouter ¶
type IRouter interface { RouterMessage(clientId uint64, msgType uint16, msg []byte) //消息转发 RouterEvent(clientId uint64, eventType string) bool //消息转发 Load() //加载路由规则 OnDisconnected(clientId uint64) OnConnected(clientId uint64) }
func NewRouter ¶
func NewRouter(loadBalance ILoadBalance, rpcHandler rpc.IRpcHandler, cfg interface{}) IRouter
type Int ¶
type Int struct { Value *int32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Int) Descriptor ¶
func (*Int) ProtoMessage ¶
func (*Int) ProtoMessage()
func (*Int) XXX_DiscardUnknown ¶
func (m *Int) XXX_DiscardUnknown()
func (*Int) XXX_Unmarshal ¶
type Int64 ¶
type Int64 struct { Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Int64) Descriptor ¶
func (*Int64) ProtoMessage ¶
func (*Int64) ProtoMessage()
func (*Int64) XXX_DiscardUnknown ¶
func (m *Int64) XXX_DiscardUnknown()
func (*Int64) XXX_Marshal ¶
func (*Int64) XXX_Unmarshal ¶
type Msg ¶
type Msg struct { Head *MsgHead `protobuf:"bytes,1,opt,name=head" json:"head,omitempty"` Ret *int32 `protobuf:"varint,2,opt,name=ret" json:"ret,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Msg) Descriptor ¶
func (*Msg) ExtensionRangeArray ¶
func (*Msg) ExtensionRangeArray() []proto.ExtensionRange
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) XXX_DiscardUnknown ¶
func (m *Msg) XXX_DiscardUnknown()
func (*Msg) XXX_Unmarshal ¶
type MsgHead ¶
type MsgHead struct { Cid *int32 `protobuf:"varint,1,opt,name=cid" json:"cid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MsgHead) Descriptor ¶
func (*MsgHead) ProtoMessage ¶
func (*MsgHead) ProtoMessage()
func (*MsgHead) XXX_DiscardUnknown ¶
func (m *MsgHead) XXX_DiscardUnknown()
func (*MsgHead) XXX_Marshal ¶
func (*MsgHead) XXX_Unmarshal ¶
type MsgRouterInfo ¶
type MsgTypeRouterInfo ¶
type MsgTypeRouterInfo struct {
// contains filtered or unexported fields
}
type PlaceHolders ¶
type PlaceHolders struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PlaceHolders) Descriptor ¶
func (*PlaceHolders) Descriptor() ([]byte, []int)
func (*PlaceHolders) ProtoMessage ¶
func (*PlaceHolders) ProtoMessage()
func (*PlaceHolders) Reset ¶
func (m *PlaceHolders) Reset()
func (*PlaceHolders) String ¶
func (m *PlaceHolders) String() string
func (*PlaceHolders) XXX_DiscardUnknown ¶
func (m *PlaceHolders) XXX_DiscardUnknown()
func (*PlaceHolders) XXX_Marshal ¶
func (m *PlaceHolders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlaceHolders) XXX_Merge ¶
func (m *PlaceHolders) XXX_Merge(src proto.Message)
func (*PlaceHolders) XXX_Size ¶
func (m *PlaceHolders) XXX_Size() int
func (*PlaceHolders) XXX_Unmarshal ¶
func (m *PlaceHolders) XXX_Unmarshal(b []byte) error
type RawInputArgs ¶
type RawInputArgs struct {
// contains filtered or unexported fields
}
func (RawInputArgs) DoGc ¶
func (args RawInputArgs) DoGc()
func (RawInputArgs) GetAdditionParam ¶
func (args RawInputArgs) GetAdditionParam() interface{}
func (RawInputArgs) GetRawData ¶
func (args RawInputArgs) GetRawData() []byte
type ReplyMessage ¶
type ReplyMessage struct { ClientList []uint64 `protobuf:"varint,1,rep,name=clientList" json:"clientList,omitempty"` MsgType *uint32 `protobuf:"varint,2,opt,name=msgType" json:"msgType,omitempty"` Msg []byte `protobuf:"bytes,3,opt,name=msg" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReplyMessage) Descriptor ¶
func (*ReplyMessage) Descriptor() ([]byte, []int)
func (*ReplyMessage) GetClientList ¶
func (m *ReplyMessage) GetClientList() []uint64
func (*ReplyMessage) GetMsg ¶
func (m *ReplyMessage) GetMsg() []byte
func (*ReplyMessage) GetMsgType ¶
func (m *ReplyMessage) GetMsgType() uint32
func (*ReplyMessage) ProtoMessage ¶
func (*ReplyMessage) ProtoMessage()
func (*ReplyMessage) Reset ¶
func (m *ReplyMessage) Reset()
func (*ReplyMessage) String ¶
func (m *ReplyMessage) String() string
func (*ReplyMessage) XXX_DiscardUnknown ¶
func (m *ReplyMessage) XXX_DiscardUnknown()
func (*ReplyMessage) XXX_Marshal ¶
func (m *ReplyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyMessage) XXX_Merge ¶
func (m *ReplyMessage) XXX_Merge(src proto.Message)
func (*ReplyMessage) XXX_Size ¶
func (m *ReplyMessage) XXX_Size() int
func (*ReplyMessage) XXX_Unmarshal ¶
func (m *ReplyMessage) XXX_Unmarshal(b []byte) error
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) GetEventRouterService ¶
func (r *Router) GetEventRouterService(eventType string) *EventRouterInfo
func (*Router) GetMsgRouterService ¶
func (r *Router) GetMsgRouterService(msgType uint16) *MsgRouterInfo
func (*Router) OnConnected ¶
func (*Router) OnDisconnected ¶
func (*Router) RouterMessage ¶
type String ¶
type String struct { Value *string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*String) Descriptor ¶
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) XXX_DiscardUnknown ¶
func (m *String) XXX_DiscardUnknown()
func (*String) XXX_Marshal ¶
func (*String) XXX_Unmarshal ¶
type TcpGateService ¶
func (*TcpGateService) OnInit ¶
func (gateService *TcpGateService) OnInit() error
func (*TcpGateService) OnLoad ¶
func (gateService *TcpGateService) OnLoad()
func (*TcpGateService) RPC_Dispatch ¶
func (gateService *TcpGateService) RPC_Dispatch(replyMsg *ReplyMessage) error
func (*TcpGateService) SetEventChannel ¶
func (gateService *TcpGateService) SetEventChannel(channelNum int)
func (*TcpGateService) SetLoadBalance ¶
func (gateService *TcpGateService) SetLoadBalance(loadBalance ILoadBalance)
func (*TcpGateService) SetRawProcessor ¶
func (gateService *TcpGateService) SetRawProcessor(processor processor.IRawProcessor)
func (*TcpGateService) SetRouter ¶
func (gateService *TcpGateService) SetRouter(router IRouter)
func (*TcpGateService) SetTcpGateService ¶
func (gateService *TcpGateService) SetTcpGateService(tcpService *tcpservice.TcpService)
Click to show internal directories.
Click to hide internal directories.