Documentation ¶
Overview ¶
Generated by github.com/davyxu/protoplus DO NOT EDIT!
Index ¶
- Variables
- func GetMessageHandler(svcName string) cellnet.EventCallback
- type ChatACK
- func (*ChatACK) Descriptor() ([]byte, []int)
- func (m *ChatACK) GetContent() string
- func (m *ChatACK) Marshal() (dAtA []byte, err error)
- func (m *ChatACK) MarshalTo(dAtA []byte) (int, error)
- func (*ChatACK) ProtoMessage()
- func (m *ChatACK) Reset()
- func (m *ChatACK) Size() (n int)
- func (m *ChatACK) String() string
- func (m *ChatACK) Unmarshal(dAtA []byte) error
- func (m *ChatACK) XXX_DiscardUnknown()
- func (m *ChatACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChatACK) XXX_Merge(src proto.Message)
- func (m *ChatACK) XXX_Size() int
- func (m *ChatACK) XXX_Unmarshal(b []byte) error
- type ChatREQ
- func (*ChatREQ) Descriptor() ([]byte, []int)
- func (m *ChatREQ) GetContent() string
- func (m *ChatREQ) Marshal() (dAtA []byte, err error)
- func (m *ChatREQ) MarshalTo(dAtA []byte) (int, error)
- func (*ChatREQ) ProtoMessage()
- func (m *ChatREQ) Reset()
- func (m *ChatREQ) Size() (n int)
- func (m *ChatREQ) String() string
- func (m *ChatREQ) Unmarshal(dAtA []byte) error
- func (m *ChatREQ) XXX_DiscardUnknown()
- func (m *ChatREQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChatREQ) XXX_Merge(src proto.Message)
- func (m *ChatREQ) XXX_Size() int
- func (m *ChatREQ) XXX_Unmarshal(b []byte) error
- type ClientClosedACK
- type ClientID
- type CloseClientACK
- type LoginACK
- func (*LoginACK) Descriptor() ([]byte, []int)
- func (m *LoginACK) GetGameSvcID() string
- func (m *LoginACK) GetGameToken() string
- func (m *LoginACK) GetResult() ResultCode
- func (m *LoginACK) GetServer() *ServerInfo
- func (m *LoginACK) Marshal() (dAtA []byte, err error)
- func (m *LoginACK) MarshalTo(dAtA []byte) (int, error)
- func (*LoginACK) ProtoMessage()
- func (m *LoginACK) Reset()
- func (m *LoginACK) Size() (n int)
- func (m *LoginACK) String() string
- func (m *LoginACK) Unmarshal(dAtA []byte) error
- func (m *LoginACK) XXX_DiscardUnknown()
- func (m *LoginACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginACK) XXX_Merge(src proto.Message)
- func (m *LoginACK) XXX_Size() int
- func (m *LoginACK) XXX_Unmarshal(b []byte) error
- type LoginREQ
- func (*LoginREQ) Descriptor() ([]byte, []int)
- func (m *LoginREQ) GetPlatform() string
- func (m *LoginREQ) GetUID() string
- func (m *LoginREQ) GetVersion() string
- func (m *LoginREQ) Marshal() (dAtA []byte, err error)
- func (m *LoginREQ) MarshalTo(dAtA []byte) (int, error)
- func (*LoginREQ) ProtoMessage()
- func (m *LoginREQ) Reset()
- func (m *LoginREQ) Size() (n int)
- func (m *LoginREQ) String() string
- func (m *LoginREQ) Unmarshal(dAtA []byte) error
- func (m *LoginREQ) XXX_DiscardUnknown()
- func (m *LoginREQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginREQ) XXX_Merge(src proto.Message)
- func (m *LoginREQ) XXX_Size() int
- func (m *LoginREQ) XXX_Unmarshal(b []byte) error
- type PingACK
- func (*PingACK) Descriptor() ([]byte, []int)
- func (m *PingACK) Marshal() (dAtA []byte, err error)
- func (m *PingACK) MarshalTo(dAtA []byte) (int, error)
- func (*PingACK) ProtoMessage()
- func (m *PingACK) Reset()
- func (m *PingACK) Size() (n int)
- func (m *PingACK) String() string
- func (m *PingACK) Unmarshal(dAtA []byte) error
- func (m *PingACK) XXX_DiscardUnknown()
- func (m *PingACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingACK) XXX_Merge(src proto.Message)
- func (m *PingACK) XXX_Size() int
- func (m *PingACK) XXX_Unmarshal(b []byte) error
- type ResultCode
- type ServerInfo
- func (*ServerInfo) Descriptor() ([]byte, []int)
- func (m *ServerInfo) GetIP() string
- func (m *ServerInfo) GetPort() int32
- func (m *ServerInfo) Marshal() (dAtA []byte, err error)
- func (m *ServerInfo) MarshalTo(dAtA []byte) (int, error)
- func (*ServerInfo) ProtoMessage()
- func (m *ServerInfo) Reset()
- func (m *ServerInfo) Size() (n int)
- func (m *ServerInfo) String() string
- func (m *ServerInfo) Unmarshal(dAtA []byte) error
- func (m *ServerInfo) XXX_DiscardUnknown()
- func (m *ServerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServerInfo) XXX_Merge(src proto.Message)
- func (m *ServerInfo) XXX_Size() int
- func (m *ServerInfo) XXX_Unmarshal(b []byte) error
- type SubscribeChannelACK
- type SubscribeChannelREQ
- type SvcStatusACK
- type TestACK
- func (*TestACK) Descriptor() ([]byte, []int)
- func (m *TestACK) GetDummy() string
- func (m *TestACK) Marshal() (dAtA []byte, err error)
- func (m *TestACK) MarshalTo(dAtA []byte) (int, error)
- func (*TestACK) ProtoMessage()
- func (m *TestACK) Reset()
- func (m *TestACK) Size() (n int)
- func (m *TestACK) String() string
- func (m *TestACK) Unmarshal(dAtA []byte) error
- func (m *TestACK) XXX_DiscardUnknown()
- func (m *TestACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestACK) XXX_Merge(src proto.Message)
- func (m *TestACK) XXX_Size() int
- func (m *TestACK) XXX_Unmarshal(b []byte) error
- type TransmitACK
- type VerifyACK
- func (*VerifyACK) Descriptor() ([]byte, []int)
- func (m *VerifyACK) GetResult() ResultCode
- func (m *VerifyACK) Marshal() (dAtA []byte, err error)
- func (m *VerifyACK) MarshalTo(dAtA []byte) (int, error)
- func (*VerifyACK) ProtoMessage()
- func (m *VerifyACK) Reset()
- func (m *VerifyACK) Size() (n int)
- func (m *VerifyACK) String() string
- func (m *VerifyACK) Unmarshal(dAtA []byte) error
- func (m *VerifyACK) XXX_DiscardUnknown()
- func (m *VerifyACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerifyACK) XXX_Merge(src proto.Message)
- func (m *VerifyACK) XXX_Size() int
- func (m *VerifyACK) XXX_Unmarshal(b []byte) error
- type VerifyREQ
- func (*VerifyREQ) Descriptor() ([]byte, []int)
- func (m *VerifyREQ) GetGameSvcID() string
- func (m *VerifyREQ) GetGameToken() string
- func (m *VerifyREQ) Marshal() (dAtA []byte, err error)
- func (m *VerifyREQ) MarshalTo(dAtA []byte) (int, error)
- func (*VerifyREQ) ProtoMessage()
- func (m *VerifyREQ) Reset()
- func (m *VerifyREQ) Size() (n int)
- func (m *VerifyREQ) String() string
- func (m *VerifyREQ) Unmarshal(dAtA []byte) error
- func (m *VerifyREQ) XXX_DiscardUnknown()
- func (m *VerifyREQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerifyREQ) XXX_Merge(src proto.Message)
- func (m *VerifyREQ) XXX_Size() int
- func (m *VerifyREQ) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthClientmsgGen = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClientmsgGen = fmt.Errorf("proto: integer overflow") )
View Source
var ( Handle_Agent_CloseClientACK = func(ev cellnet.Event) { panic("'CloseClientACK' not handled") } Handle_Agent_Default func(ev cellnet.Event) )
agent
View Source
var ( Handle_Game_ChatREQ = func(ev cellnet.Event) { panic("'ChatREQ' not handled") } Handle_Game_VerifyREQ = func(ev cellnet.Event) { panic("'VerifyREQ' not handled") } Handle_Game_Default func(ev cellnet.Event) )
game
View Source
var ( Handle_Hub_SubscribeChannelREQ = func(ev cellnet.Event) { panic("'SubscribeChannelREQ' not handled") } Handle_Hub_Default func(ev cellnet.Event) )
hub
View Source
var ( Handle_Login_LoginREQ = func(ev cellnet.Event) { panic("'LoginREQ' not handled") } Handle_Login_SvcStatusACK = func(ev cellnet.Event) { panic("'SvcStatusACK' not handled") } Handle_Login_Default func(ev cellnet.Event) )
login
View Source
var ( Handle_Match_SvcStatusACK = func(ev cellnet.Event) { panic("'SvcStatusACK' not handled") } Handle_Match_Default func(ev cellnet.Event) )
match
View Source
var ResultCode_name = map[int32]string{
0: "NoError",
101: "AgentNotFound",
102: "AgentAddressError",
103: "GameNotFound",
}
View Source
var ResultCode_value = map[string]int32{
"NoError": 0,
"AgentNotFound": 101,
"AgentAddressError": 102,
"GameNotFound": 103,
}
Functions ¶
func GetMessageHandler ¶
func GetMessageHandler(svcName string) cellnet.EventCallback
Types ¶
type ChatACK ¶
type ChatACK struct {
Content string `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content,omitempty"`
}
func (*ChatACK) Descriptor ¶
func (*ChatACK) GetContent ¶
func (*ChatACK) ProtoMessage ¶
func (*ChatACK) ProtoMessage()
func (*ChatACK) XXX_DiscardUnknown ¶
func (m *ChatACK) XXX_DiscardUnknown()
func (*ChatACK) XXX_Marshal ¶
func (*ChatACK) XXX_Unmarshal ¶
type ChatREQ ¶
type ChatREQ struct {
Content string `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content,omitempty"`
}
func (*ChatREQ) Descriptor ¶
func (*ChatREQ) GetContent ¶
func (*ChatREQ) ProtoMessage ¶
func (*ChatREQ) ProtoMessage()
func (*ChatREQ) XXX_DiscardUnknown ¶
func (m *ChatREQ) XXX_DiscardUnknown()
func (*ChatREQ) XXX_Marshal ¶
func (*ChatREQ) XXX_Unmarshal ¶
type ClientClosedACK ¶
type ClientClosedACK struct {
ID ClientID
}
func (*ClientClosedACK) Size ¶
func (self *ClientClosedACK) Size() (ret int)
func (*ClientClosedACK) String ¶
func (self *ClientClosedACK) String() string
type CloseClientACK ¶
func (*CloseClientACK) Size ¶
func (self *CloseClientACK) Size() (ret int)
func (*CloseClientACK) String ¶
func (self *CloseClientACK) String() string
type LoginACK ¶
type LoginACK struct { Result ResultCode `protobuf:"varint,1,opt,name=Result,proto3,enum=proto.ResultCode" json:"Result,omitempty"` Server *ServerInfo `protobuf:"bytes,2,opt,name=Server,proto3" json:"Server,omitempty"` GameToken string `protobuf:"bytes,3,opt,name=GameToken,proto3" json:"GameToken,omitempty"` GameSvcID string `protobuf:"bytes,4,opt,name=GameSvcID,proto3" json:"GameSvcID,omitempty"` }
func (*LoginACK) Descriptor ¶
func (*LoginACK) GetGameSvcID ¶
func (*LoginACK) GetGameToken ¶
func (*LoginACK) GetResult ¶
func (m *LoginACK) GetResult() ResultCode
func (*LoginACK) GetServer ¶
func (m *LoginACK) GetServer() *ServerInfo
func (*LoginACK) ProtoMessage ¶
func (*LoginACK) ProtoMessage()
func (*LoginACK) XXX_DiscardUnknown ¶
func (m *LoginACK) XXX_DiscardUnknown()
func (*LoginACK) XXX_Marshal ¶
func (*LoginACK) XXX_Unmarshal ¶
type LoginREQ ¶
type LoginREQ struct { Version string `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"` Platform string `protobuf:"bytes,2,opt,name=Platform,proto3" json:"Platform,omitempty"` UID string `protobuf:"bytes,3,opt,name=UID,proto3" json:"UID,omitempty"` }
func (*LoginREQ) Descriptor ¶
func (*LoginREQ) GetPlatform ¶
func (*LoginREQ) GetVersion ¶
func (*LoginREQ) ProtoMessage ¶
func (*LoginREQ) ProtoMessage()
func (*LoginREQ) XXX_DiscardUnknown ¶
func (m *LoginREQ) XXX_DiscardUnknown()
func (*LoginREQ) XXX_Marshal ¶
func (*LoginREQ) XXX_Unmarshal ¶
type PingACK ¶
type PingACK struct { }
func (*PingACK) Descriptor ¶
func (*PingACK) ProtoMessage ¶
func (*PingACK) ProtoMessage()
func (*PingACK) XXX_DiscardUnknown ¶
func (m *PingACK) XXX_DiscardUnknown()
func (*PingACK) XXX_Marshal ¶
func (*PingACK) XXX_Unmarshal ¶
type ResultCode ¶
type ResultCode int32
const ( ResultCode_NoError ResultCode = 0 ResultCode_AgentNotFound ResultCode = 101 ResultCode_AgentAddressError ResultCode = 102 ResultCode_GameNotFound ResultCode = 103 )
func (ResultCode) EnumDescriptor ¶
func (ResultCode) EnumDescriptor() ([]byte, []int)
func (ResultCode) String ¶
func (x ResultCode) String() string
type ServerInfo ¶
type ServerInfo struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` Port int32 `protobuf:"varint,2,opt,name=Port,proto3" json:"Port,omitempty"` }
func (*ServerInfo) Descriptor ¶
func (*ServerInfo) Descriptor() ([]byte, []int)
func (*ServerInfo) GetIP ¶
func (m *ServerInfo) GetIP() string
func (*ServerInfo) GetPort ¶
func (m *ServerInfo) GetPort() int32
func (*ServerInfo) Marshal ¶
func (m *ServerInfo) Marshal() (dAtA []byte, err error)
func (*ServerInfo) ProtoMessage ¶
func (*ServerInfo) ProtoMessage()
func (*ServerInfo) Reset ¶
func (m *ServerInfo) Reset()
func (*ServerInfo) Size ¶
func (m *ServerInfo) Size() (n int)
func (*ServerInfo) String ¶
func (m *ServerInfo) String() string
func (*ServerInfo) Unmarshal ¶
func (m *ServerInfo) Unmarshal(dAtA []byte) error
func (*ServerInfo) XXX_DiscardUnknown ¶
func (m *ServerInfo) XXX_DiscardUnknown()
func (*ServerInfo) XXX_Marshal ¶
func (m *ServerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServerInfo) XXX_Merge ¶
func (m *ServerInfo) XXX_Merge(src proto.Message)
func (*ServerInfo) XXX_Size ¶
func (m *ServerInfo) XXX_Size() int
func (*ServerInfo) XXX_Unmarshal ¶
func (m *ServerInfo) XXX_Unmarshal(b []byte) error
type SubscribeChannelACK ¶
type SubscribeChannelACK struct {
Channel string
}
func (*SubscribeChannelACK) Marshal ¶
func (self *SubscribeChannelACK) Marshal(buffer *proto.Buffer) error
func (*SubscribeChannelACK) Size ¶
func (self *SubscribeChannelACK) Size() (ret int)
func (*SubscribeChannelACK) String ¶
func (self *SubscribeChannelACK) String() string
type SubscribeChannelREQ ¶
type SubscribeChannelREQ struct {
Channel string
}
func (*SubscribeChannelREQ) Marshal ¶
func (self *SubscribeChannelREQ) Marshal(buffer *proto.Buffer) error
func (*SubscribeChannelREQ) Size ¶
func (self *SubscribeChannelREQ) Size() (ret int)
func (*SubscribeChannelREQ) String ¶
func (self *SubscribeChannelREQ) String() string
type SvcStatusACK ¶
func (*SvcStatusACK) Size ¶
func (self *SvcStatusACK) Size() (ret int)
func (*SvcStatusACK) String ¶
func (self *SvcStatusACK) String() string
type TestACK ¶
type TestACK struct {
Dummy string `protobuf:"bytes,1,opt,name=Dummy,proto3" json:"Dummy,omitempty"`
}
func (*TestACK) Descriptor ¶
func (*TestACK) ProtoMessage ¶
func (*TestACK) ProtoMessage()
func (*TestACK) XXX_DiscardUnknown ¶
func (m *TestACK) XXX_DiscardUnknown()
func (*TestACK) XXX_Marshal ¶
func (*TestACK) XXX_Unmarshal ¶
type TransmitACK ¶
type TransmitACK struct { MsgID uint32 // 用户消息ID MsgData []byte // 用户消息数据 ClientID int64 // 单发 ClientIDList []int64 // 列表发 All bool // 全发 }
func (*TransmitACK) Size ¶
func (self *TransmitACK) Size() (ret int)
func (*TransmitACK) String ¶
func (self *TransmitACK) String() string
type VerifyACK ¶
type VerifyACK struct {
Result ResultCode `protobuf:"varint,1,opt,name=Result,proto3,enum=proto.ResultCode" json:"Result,omitempty"`
}
func (*VerifyACK) Descriptor ¶
func (*VerifyACK) GetResult ¶
func (m *VerifyACK) GetResult() ResultCode
func (*VerifyACK) ProtoMessage ¶
func (*VerifyACK) ProtoMessage()
func (*VerifyACK) XXX_DiscardUnknown ¶
func (m *VerifyACK) XXX_DiscardUnknown()
func (*VerifyACK) XXX_Marshal ¶
func (*VerifyACK) XXX_Unmarshal ¶
type VerifyREQ ¶
type VerifyREQ struct { GameToken string `protobuf:"bytes,1,opt,name=GameToken,proto3" json:"GameToken,omitempty"` GameSvcID string `protobuf:"bytes,2,opt,name=GameSvcID,proto3" json:"GameSvcID,omitempty"` }
func (*VerifyREQ) Descriptor ¶
func (*VerifyREQ) GetGameSvcID ¶
func (*VerifyREQ) GetGameToken ¶
func (*VerifyREQ) ProtoMessage ¶
func (*VerifyREQ) ProtoMessage()
func (*VerifyREQ) XXX_DiscardUnknown ¶
func (m *VerifyREQ) XXX_DiscardUnknown()
func (*VerifyREQ) XXX_Marshal ¶
func (*VerifyREQ) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.