pb

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCommon        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommon          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCommon = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPlayer        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPlayer          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPlayer = fmt.Errorf("proto: unexpected end of group")
)
View Source
var MsgID_name = map[int32]string{
	0:   "UNKNOW_MessageID",
	100: "C2S_FETCH_CONFIG",
	101: "C2S_PLAYER_LOGIN",
	102: "C2S_PLAYER_PLAYING",
	103: "C2S_PLAYER_LOGOUT",
}
View Source
var MsgID_value = map[string]int32{
	"UNKNOW_MessageID":   0,
	"C2S_FETCH_CONFIG":   100,
	"C2S_PLAYER_LOGIN":   101,
	"C2S_PLAYER_PLAYING": 102,
	"C2S_PLAYER_LOGOUT":  103,
}
View Source
var MsgType_name = map[int32]string{
	0: "Unknown",
	1: "Req",
	2: "Reply",
	3: "Push",
	4: "Err",
}
View Source
var MsgType_value = map[string]int32{
	"Unknown": 0,
	"Req":     1,
	"Reply":   2,
	"Push":    3,
	"Err":     4,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerTime           int64    `protobuf:"varint,1,opt,name=ServerTime,proto3" json:"ServerTime,omitempty"`
	Version              string   `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"`
	Channel              string   `protobuf:"bytes,3,opt,name=Channel,proto3" json:"Channel,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Config) Descriptor

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

func (*Config) GetChannel

func (m *Config) GetChannel() string

func (*Config) GetServerTime

func (m *Config) GetServerTime() int64

func (*Config) GetVersion

func (m *Config) GetVersion() string

func (*Config) Marshal

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

func (*Config) MarshalTo

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

func (*Config) MarshalToSizedBuffer

func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) Size

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

func (*Config) String

func (m *Config) String() string

func (*Config) Unmarshal

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

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

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

func (*Config) XXX_Merge

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

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

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

type ErrMsg

type ErrMsg struct {
	Code                 int32    `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ErrMsg) Descriptor

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

func (*ErrMsg) GetCode

func (m *ErrMsg) GetCode() int32

func (*ErrMsg) GetMsg

func (m *ErrMsg) GetMsg() string

func (*ErrMsg) Marshal

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

func (*ErrMsg) MarshalTo

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

func (*ErrMsg) MarshalToSizedBuffer

func (m *ErrMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrMsg) ProtoMessage

func (*ErrMsg) ProtoMessage()

func (*ErrMsg) Reset

func (m *ErrMsg) Reset()

func (*ErrMsg) Size

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

func (*ErrMsg) String

func (m *ErrMsg) String() string

func (*ErrMsg) Unmarshal

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

func (*ErrMsg) XXX_DiscardUnknown

func (m *ErrMsg) XXX_DiscardUnknown()

func (*ErrMsg) XXX_Marshal

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

func (*ErrMsg) XXX_Merge

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

func (*ErrMsg) XXX_Size

func (m *ErrMsg) XXX_Size() int

func (*ErrMsg) XXX_Unmarshal

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

type LoginArg

type LoginArg struct {
	Account              string   `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	ClientType           string   `protobuf:"bytes,3,opt,name=ClientType,proto3" json:"ClientType,omitempty"`
	ClientVer            string   `protobuf:"bytes,4,opt,name=ClientVer,proto3" json:"ClientVer,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoginArg) Descriptor

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

func (*LoginArg) GetAccount

func (m *LoginArg) GetAccount() string

func (*LoginArg) GetClientType

func (m *LoginArg) GetClientType() string

func (*LoginArg) GetClientVer

func (m *LoginArg) GetClientVer() string

func (*LoginArg) GetPassword

func (m *LoginArg) GetPassword() string

func (*LoginArg) Marshal

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

func (*LoginArg) MarshalTo

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

func (*LoginArg) MarshalToSizedBuffer

func (m *LoginArg) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoginArg) ProtoMessage

func (*LoginArg) ProtoMessage()

func (*LoginArg) Reset

func (m *LoginArg) Reset()

func (*LoginArg) Size

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

func (*LoginArg) String

func (m *LoginArg) String() string

func (*LoginArg) Unmarshal

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

func (*LoginArg) XXX_DiscardUnknown

func (m *LoginArg) XXX_DiscardUnknown()

func (*LoginArg) XXX_Marshal

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

func (*LoginArg) XXX_Merge

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

func (*LoginArg) XXX_Size

func (m *LoginArg) XXX_Size() int

func (*LoginArg) XXX_Unmarshal

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

type LoginResp

type LoginResp struct {
	Uid                  int64    `protobuf:"varint,1,opt,name=Uid,proto3" json:"Uid,omitempty"`
	Avatar               string   `protobuf:"bytes,2,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
	Nickname             string   `protobuf:"bytes,3,opt,name=Nickname,proto3" json:"Nickname,omitempty"`
	Gold                 int32    `protobuf:"varint,4,opt,name=Gold,proto3" json:"Gold,omitempty"`
	Level                int32    `protobuf:"varint,5,opt,name=Level,proto3" json:"Level,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoginResp) Descriptor

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

func (*LoginResp) GetAvatar

func (m *LoginResp) GetAvatar() string

func (*LoginResp) GetGold

func (m *LoginResp) GetGold() int32

func (*LoginResp) GetLevel

func (m *LoginResp) GetLevel() int32

func (*LoginResp) GetNickname

func (m *LoginResp) GetNickname() string

func (*LoginResp) GetUid

func (m *LoginResp) GetUid() int64

func (*LoginResp) Marshal

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

func (*LoginResp) MarshalTo

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

func (*LoginResp) MarshalToSizedBuffer

func (m *LoginResp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoginResp) ProtoMessage

func (*LoginResp) ProtoMessage()

func (*LoginResp) Reset

func (m *LoginResp) Reset()

func (*LoginResp) Size

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

func (*LoginResp) String

func (m *LoginResp) String() string

func (*LoginResp) Unmarshal

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

func (*LoginResp) XXX_DiscardUnknown

func (m *LoginResp) XXX_DiscardUnknown()

func (*LoginResp) XXX_Marshal

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

func (*LoginResp) XXX_Merge

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

func (*LoginResp) XXX_Size

func (m *LoginResp) XXX_Size() int

func (*LoginResp) XXX_Unmarshal

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

type MsgID

type MsgID int32
const (
	MsgID_UNKNOW_MessageID   MsgID = 0
	MsgID_C2S_FETCH_CONFIG   MsgID = 100
	MsgID_C2S_PLAYER_LOGIN   MsgID = 101
	MsgID_C2S_PLAYER_PLAYING MsgID = 102
	MsgID_C2S_PLAYER_LOGOUT  MsgID = 103
)

func (MsgID) EnumDescriptor

func (MsgID) EnumDescriptor() ([]byte, []int)

func (MsgID) String

func (x MsgID) String() string

type MsgType

type MsgType int32
const (
	MsgType_Unknown MsgType = 0
	MsgType_Req     MsgType = 1
	MsgType_Reply   MsgType = 2
	MsgType_Push    MsgType = 3
	MsgType_Err     MsgType = 4
)

func (MsgType) EnumDescriptor

func (MsgType) EnumDescriptor() ([]byte, []int)

func (MsgType) String

func (x MsgType) String() string

type PkgMsg

type PkgMsg struct {
	Type                 MsgType  `protobuf:"varint,1,opt,name=Type,proto3,enum=pb.MsgType" json:"Type,omitempty"`
	Msgid                MsgID    `protobuf:"varint,2,opt,name=Msgid,proto3,enum=pb.MsgID" json:"Msgid,omitempty"`
	Payload              []byte   `protobuf:"bytes,3,opt,name=Payload,proto3" json:"Payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PkgMsg) Descriptor

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

func (*PkgMsg) GetMsgid

func (m *PkgMsg) GetMsgid() MsgID

func (*PkgMsg) GetPayload

func (m *PkgMsg) GetPayload() []byte

func (*PkgMsg) GetType

func (m *PkgMsg) GetType() MsgType

func (*PkgMsg) Marshal

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

func (*PkgMsg) MarshalTo

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

func (*PkgMsg) MarshalToSizedBuffer

func (m *PkgMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PkgMsg) ProtoMessage

func (*PkgMsg) ProtoMessage()

func (*PkgMsg) Reset

func (m *PkgMsg) Reset()

func (*PkgMsg) Size

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

func (*PkgMsg) String

func (m *PkgMsg) String() string

func (*PkgMsg) Unmarshal

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

func (*PkgMsg) XXX_DiscardUnknown

func (m *PkgMsg) XXX_DiscardUnknown()

func (*PkgMsg) XXX_Marshal

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

func (*PkgMsg) XXX_Merge

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

func (*PkgMsg) XXX_Size

func (m *PkgMsg) XXX_Size() int

func (*PkgMsg) XXX_Unmarshal

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

type PlayingArg

type PlayingArg struct {
	Vigor                int32    `protobuf:"varint,1,opt,name=Vigor,proto3" json:"Vigor,omitempty"`
	Angle                int32    `protobuf:"varint,2,opt,name=Angle,proto3" json:"Angle,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PlayingArg) Descriptor

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

func (*PlayingArg) GetAngle

func (m *PlayingArg) GetAngle() int32

func (*PlayingArg) GetVigor

func (m *PlayingArg) GetVigor() int32

func (*PlayingArg) Marshal

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

func (*PlayingArg) MarshalTo

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

func (*PlayingArg) MarshalToSizedBuffer

func (m *PlayingArg) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PlayingArg) ProtoMessage

func (*PlayingArg) ProtoMessage()

func (*PlayingArg) Reset

func (m *PlayingArg) Reset()

func (*PlayingArg) Size

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

func (*PlayingArg) String

func (m *PlayingArg) String() string

func (*PlayingArg) Unmarshal

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

func (*PlayingArg) XXX_DiscardUnknown

func (m *PlayingArg) XXX_DiscardUnknown()

func (*PlayingArg) XXX_Marshal

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

func (*PlayingArg) XXX_Merge

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

func (*PlayingArg) XXX_Size

func (m *PlayingArg) XXX_Size() int

func (*PlayingArg) XXX_Unmarshal

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

type ServerTime

type ServerTime struct {
	Time                 int64    `protobuf:"varint,1,opt,name=Time,proto3" json:"Time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerTime) Descriptor

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

func (*ServerTime) GetTime

func (m *ServerTime) GetTime() int64

func (*ServerTime) Marshal

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

func (*ServerTime) MarshalTo

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

func (*ServerTime) MarshalToSizedBuffer

func (m *ServerTime) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ServerTime) ProtoMessage

func (*ServerTime) ProtoMessage()

func (*ServerTime) Reset

func (m *ServerTime) Reset()

func (*ServerTime) Size

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

func (*ServerTime) String

func (m *ServerTime) String() string

func (*ServerTime) Unmarshal

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

func (*ServerTime) XXX_DiscardUnknown

func (m *ServerTime) XXX_DiscardUnknown()

func (*ServerTime) XXX_Marshal

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

func (*ServerTime) XXX_Merge

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

func (*ServerTime) XXX_Size

func (m *ServerTime) XXX_Size() int

func (*ServerTime) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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