proto

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 11 Imported by: 14

Documentation

Overview

Generated by github.com/davyxu/protoplus DO NOT EDIT!

Index

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) Descriptor() ([]byte, []int)

func (*ChatACK) GetContent

func (m *ChatACK) GetContent() string

func (*ChatACK) Marshal

func (m *ChatACK) Marshal() (dAtA []byte, err error)

func (*ChatACK) MarshalTo

func (m *ChatACK) MarshalTo(dAtA []byte) (int, error)

func (*ChatACK) ProtoMessage

func (*ChatACK) ProtoMessage()

func (*ChatACK) Reset

func (m *ChatACK) Reset()

func (*ChatACK) Size

func (m *ChatACK) Size() (n int)

func (*ChatACK) String

func (m *ChatACK) String() string

func (*ChatACK) Unmarshal

func (m *ChatACK) Unmarshal(dAtA []byte) error

func (*ChatACK) XXX_DiscardUnknown

func (m *ChatACK) XXX_DiscardUnknown()

func (*ChatACK) XXX_Marshal

func (m *ChatACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChatACK) XXX_Merge

func (m *ChatACK) XXX_Merge(src proto.Message)

func (*ChatACK) XXX_Size

func (m *ChatACK) XXX_Size() int

func (*ChatACK) XXX_Unmarshal

func (m *ChatACK) XXX_Unmarshal(b []byte) error

type ChatREQ

type ChatREQ struct {
	Content string `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content,omitempty"`
}

func (*ChatREQ) Descriptor

func (*ChatREQ) Descriptor() ([]byte, []int)

func (*ChatREQ) GetContent

func (m *ChatREQ) GetContent() string

func (*ChatREQ) Marshal

func (m *ChatREQ) Marshal() (dAtA []byte, err error)

func (*ChatREQ) MarshalTo

func (m *ChatREQ) MarshalTo(dAtA []byte) (int, error)

func (*ChatREQ) ProtoMessage

func (*ChatREQ) ProtoMessage()

func (*ChatREQ) Reset

func (m *ChatREQ) Reset()

func (*ChatREQ) Size

func (m *ChatREQ) Size() (n int)

func (*ChatREQ) String

func (m *ChatREQ) String() string

func (*ChatREQ) Unmarshal

func (m *ChatREQ) Unmarshal(dAtA []byte) error

func (*ChatREQ) XXX_DiscardUnknown

func (m *ChatREQ) XXX_DiscardUnknown()

func (*ChatREQ) XXX_Marshal

func (m *ChatREQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChatREQ) XXX_Merge

func (m *ChatREQ) XXX_Merge(src proto.Message)

func (*ChatREQ) XXX_Size

func (m *ChatREQ) XXX_Size() int

func (*ChatREQ) XXX_Unmarshal

func (m *ChatREQ) XXX_Unmarshal(b []byte) error

type ClientClosedACK

type ClientClosedACK struct {
	ID ClientID
}

func (*ClientClosedACK) Marshal

func (self *ClientClosedACK) Marshal(buffer *proto.Buffer) error

func (*ClientClosedACK) Size

func (self *ClientClosedACK) Size() (ret int)

func (*ClientClosedACK) String

func (self *ClientClosedACK) String() string

func (*ClientClosedACK) Unmarshal

func (self *ClientClosedACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type ClientID

type ClientID struct {
	ID    int64  // 客户端在网关上的SessionID
	SvcID string // 客户端在哪个网关
}

func (*ClientID) Marshal

func (self *ClientID) Marshal(buffer *proto.Buffer) error

func (*ClientID) Size

func (self *ClientID) Size() (ret int)

func (*ClientID) String

func (self *ClientID) String() string

func (*ClientID) Unmarshal

func (self *ClientID) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type CloseClientACK

type CloseClientACK struct {
	ID  []int64
	All bool
}

func (*CloseClientACK) Marshal

func (self *CloseClientACK) Marshal(buffer *proto.Buffer) error

func (*CloseClientACK) Size

func (self *CloseClientACK) Size() (ret int)

func (*CloseClientACK) String

func (self *CloseClientACK) String() string

func (*CloseClientACK) Unmarshal

func (self *CloseClientACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

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) Descriptor() ([]byte, []int)

func (*LoginACK) GetGameSvcID

func (m *LoginACK) GetGameSvcID() string

func (*LoginACK) GetGameToken

func (m *LoginACK) GetGameToken() string

func (*LoginACK) GetResult

func (m *LoginACK) GetResult() ResultCode

func (*LoginACK) GetServer

func (m *LoginACK) GetServer() *ServerInfo

func (*LoginACK) Marshal

func (m *LoginACK) Marshal() (dAtA []byte, err error)

func (*LoginACK) MarshalTo

func (m *LoginACK) MarshalTo(dAtA []byte) (int, error)

func (*LoginACK) ProtoMessage

func (*LoginACK) ProtoMessage()

func (*LoginACK) Reset

func (m *LoginACK) Reset()

func (*LoginACK) Size

func (m *LoginACK) Size() (n int)

func (*LoginACK) String

func (m *LoginACK) String() string

func (*LoginACK) Unmarshal

func (m *LoginACK) Unmarshal(dAtA []byte) error

func (*LoginACK) XXX_DiscardUnknown

func (m *LoginACK) XXX_DiscardUnknown()

func (*LoginACK) XXX_Marshal

func (m *LoginACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginACK) XXX_Merge

func (m *LoginACK) XXX_Merge(src proto.Message)

func (*LoginACK) XXX_Size

func (m *LoginACK) XXX_Size() int

func (*LoginACK) XXX_Unmarshal

func (m *LoginACK) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*LoginREQ) GetPlatform

func (m *LoginREQ) GetPlatform() string

func (*LoginREQ) GetUID

func (m *LoginREQ) GetUID() string

func (*LoginREQ) GetVersion

func (m *LoginREQ) GetVersion() string

func (*LoginREQ) Marshal

func (m *LoginREQ) Marshal() (dAtA []byte, err error)

func (*LoginREQ) MarshalTo

func (m *LoginREQ) MarshalTo(dAtA []byte) (int, error)

func (*LoginREQ) ProtoMessage

func (*LoginREQ) ProtoMessage()

func (*LoginREQ) Reset

func (m *LoginREQ) Reset()

func (*LoginREQ) Size

func (m *LoginREQ) Size() (n int)

func (*LoginREQ) String

func (m *LoginREQ) String() string

func (*LoginREQ) Unmarshal

func (m *LoginREQ) Unmarshal(dAtA []byte) error

func (*LoginREQ) XXX_DiscardUnknown

func (m *LoginREQ) XXX_DiscardUnknown()

func (*LoginREQ) XXX_Marshal

func (m *LoginREQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginREQ) XXX_Merge

func (m *LoginREQ) XXX_Merge(src proto.Message)

func (*LoginREQ) XXX_Size

func (m *LoginREQ) XXX_Size() int

func (*LoginREQ) XXX_Unmarshal

func (m *LoginREQ) XXX_Unmarshal(b []byte) error

type PingACK

type PingACK struct {
}

func (*PingACK) Descriptor

func (*PingACK) Descriptor() ([]byte, []int)

func (*PingACK) Marshal

func (m *PingACK) Marshal() (dAtA []byte, err error)

func (*PingACK) MarshalTo

func (m *PingACK) MarshalTo(dAtA []byte) (int, error)

func (*PingACK) ProtoMessage

func (*PingACK) ProtoMessage()

func (*PingACK) Reset

func (m *PingACK) Reset()

func (*PingACK) Size

func (m *PingACK) Size() (n int)

func (*PingACK) String

func (m *PingACK) String() string

func (*PingACK) Unmarshal

func (m *PingACK) Unmarshal(dAtA []byte) error

func (*PingACK) XXX_DiscardUnknown

func (m *PingACK) XXX_DiscardUnknown()

func (*PingACK) XXX_Marshal

func (m *PingACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingACK) XXX_Merge

func (m *PingACK) XXX_Merge(src proto.Message)

func (*PingACK) XXX_Size

func (m *PingACK) XXX_Size() int

func (*PingACK) XXX_Unmarshal

func (m *PingACK) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *ServerInfo) MarshalTo(dAtA []byte) (int, 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

func (*SubscribeChannelACK) Unmarshal

func (self *SubscribeChannelACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

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

func (*SubscribeChannelREQ) Unmarshal

func (self *SubscribeChannelREQ) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type SvcStatusACK

type SvcStatusACK struct {
	SvcID     string
	UserCount int32
}

func (*SvcStatusACK) Marshal

func (self *SvcStatusACK) Marshal(buffer *proto.Buffer) error

func (*SvcStatusACK) Size

func (self *SvcStatusACK) Size() (ret int)

func (*SvcStatusACK) String

func (self *SvcStatusACK) String() string

func (*SvcStatusACK) Unmarshal

func (self *SvcStatusACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type TestACK

type TestACK struct {
	Dummy string `protobuf:"bytes,1,opt,name=Dummy,proto3" json:"Dummy,omitempty"`
}

func (*TestACK) Descriptor

func (*TestACK) Descriptor() ([]byte, []int)

func (*TestACK) GetDummy

func (m *TestACK) GetDummy() string

func (*TestACK) Marshal

func (m *TestACK) Marshal() (dAtA []byte, err error)

func (*TestACK) MarshalTo

func (m *TestACK) MarshalTo(dAtA []byte) (int, error)

func (*TestACK) ProtoMessage

func (*TestACK) ProtoMessage()

func (*TestACK) Reset

func (m *TestACK) Reset()

func (*TestACK) Size

func (m *TestACK) Size() (n int)

func (*TestACK) String

func (m *TestACK) String() string

func (*TestACK) Unmarshal

func (m *TestACK) Unmarshal(dAtA []byte) error

func (*TestACK) XXX_DiscardUnknown

func (m *TestACK) XXX_DiscardUnknown()

func (*TestACK) XXX_Marshal

func (m *TestACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestACK) XXX_Merge

func (m *TestACK) XXX_Merge(src proto.Message)

func (*TestACK) XXX_Size

func (m *TestACK) XXX_Size() int

func (*TestACK) XXX_Unmarshal

func (m *TestACK) XXX_Unmarshal(b []byte) error

type TransmitACK

type TransmitACK struct {
	MsgID        uint32  // 用户消息ID
	MsgData      []byte  // 用户消息数据
	ClientID     int64   // 单发
	ClientIDList []int64 // 列表发
	All          bool    // 全发
}

func (*TransmitACK) Marshal

func (self *TransmitACK) Marshal(buffer *proto.Buffer) error

func (*TransmitACK) Size

func (self *TransmitACK) Size() (ret int)

func (*TransmitACK) String

func (self *TransmitACK) String() string

func (*TransmitACK) Unmarshal

func (self *TransmitACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

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) Descriptor() ([]byte, []int)

func (*VerifyACK) GetResult

func (m *VerifyACK) GetResult() ResultCode

func (*VerifyACK) Marshal

func (m *VerifyACK) Marshal() (dAtA []byte, err error)

func (*VerifyACK) MarshalTo

func (m *VerifyACK) MarshalTo(dAtA []byte) (int, error)

func (*VerifyACK) ProtoMessage

func (*VerifyACK) ProtoMessage()

func (*VerifyACK) Reset

func (m *VerifyACK) Reset()

func (*VerifyACK) Size

func (m *VerifyACK) Size() (n int)

func (*VerifyACK) String

func (m *VerifyACK) String() string

func (*VerifyACK) Unmarshal

func (m *VerifyACK) Unmarshal(dAtA []byte) error

func (*VerifyACK) XXX_DiscardUnknown

func (m *VerifyACK) XXX_DiscardUnknown()

func (*VerifyACK) XXX_Marshal

func (m *VerifyACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyACK) XXX_Merge

func (m *VerifyACK) XXX_Merge(src proto.Message)

func (*VerifyACK) XXX_Size

func (m *VerifyACK) XXX_Size() int

func (*VerifyACK) XXX_Unmarshal

func (m *VerifyACK) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*VerifyREQ) GetGameSvcID

func (m *VerifyREQ) GetGameSvcID() string

func (*VerifyREQ) GetGameToken

func (m *VerifyREQ) GetGameToken() string

func (*VerifyREQ) Marshal

func (m *VerifyREQ) Marshal() (dAtA []byte, err error)

func (*VerifyREQ) MarshalTo

func (m *VerifyREQ) MarshalTo(dAtA []byte) (int, error)

func (*VerifyREQ) ProtoMessage

func (*VerifyREQ) ProtoMessage()

func (*VerifyREQ) Reset

func (m *VerifyREQ) Reset()

func (*VerifyREQ) Size

func (m *VerifyREQ) Size() (n int)

func (*VerifyREQ) String

func (m *VerifyREQ) String() string

func (*VerifyREQ) Unmarshal

func (m *VerifyREQ) Unmarshal(dAtA []byte) error

func (*VerifyREQ) XXX_DiscardUnknown

func (m *VerifyREQ) XXX_DiscardUnknown()

func (*VerifyREQ) XXX_Marshal

func (m *VerifyREQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyREQ) XXX_Merge

func (m *VerifyREQ) XXX_Merge(src proto.Message)

func (*VerifyREQ) XXX_Size

func (m *VerifyREQ) XXX_Size() int

func (*VerifyREQ) XXX_Unmarshal

func (m *VerifyREQ) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL