Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetChannel() string
- func (m *Config) GetServerTime() int64
- func (m *Config) GetVersion() string
- func (m *Config) Marshal() (dAtA []byte, err error)
- func (m *Config) MarshalTo(dAtA []byte) (int, error)
- func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) Size() (n int)
- func (m *Config) String() string
- func (m *Config) Unmarshal(dAtA []byte) error
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type ErrMsg
- func (*ErrMsg) Descriptor() ([]byte, []int)
- func (m *ErrMsg) GetCode() int32
- func (m *ErrMsg) GetMsg() string
- func (m *ErrMsg) Marshal() (dAtA []byte, err error)
- func (m *ErrMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *ErrMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ErrMsg) ProtoMessage()
- func (m *ErrMsg) Reset()
- func (m *ErrMsg) Size() (n int)
- func (m *ErrMsg) String() string
- func (m *ErrMsg) Unmarshal(dAtA []byte) error
- func (m *ErrMsg) XXX_DiscardUnknown()
- func (m *ErrMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrMsg) XXX_Merge(src proto.Message)
- func (m *ErrMsg) XXX_Size() int
- func (m *ErrMsg) XXX_Unmarshal(b []byte) error
- type LoginArg
- func (*LoginArg) Descriptor() ([]byte, []int)
- func (m *LoginArg) GetAccount() string
- func (m *LoginArg) GetClientType() string
- func (m *LoginArg) GetClientVer() string
- func (m *LoginArg) GetPassword() string
- func (m *LoginArg) Marshal() (dAtA []byte, err error)
- func (m *LoginArg) MarshalTo(dAtA []byte) (int, error)
- func (m *LoginArg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LoginArg) ProtoMessage()
- func (m *LoginArg) Reset()
- func (m *LoginArg) Size() (n int)
- func (m *LoginArg) String() string
- func (m *LoginArg) Unmarshal(dAtA []byte) error
- func (m *LoginArg) XXX_DiscardUnknown()
- func (m *LoginArg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginArg) XXX_Merge(src proto.Message)
- func (m *LoginArg) XXX_Size() int
- func (m *LoginArg) XXX_Unmarshal(b []byte) error
- type LoginResp
- func (*LoginResp) Descriptor() ([]byte, []int)
- func (m *LoginResp) GetAvatar() string
- func (m *LoginResp) GetGold() int32
- func (m *LoginResp) GetLevel() int32
- func (m *LoginResp) GetNickname() string
- func (m *LoginResp) GetUid() int64
- func (m *LoginResp) Marshal() (dAtA []byte, err error)
- func (m *LoginResp) MarshalTo(dAtA []byte) (int, error)
- func (m *LoginResp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LoginResp) ProtoMessage()
- func (m *LoginResp) Reset()
- func (m *LoginResp) Size() (n int)
- func (m *LoginResp) String() string
- func (m *LoginResp) Unmarshal(dAtA []byte) error
- func (m *LoginResp) XXX_DiscardUnknown()
- func (m *LoginResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginResp) XXX_Merge(src proto.Message)
- func (m *LoginResp) XXX_Size() int
- func (m *LoginResp) XXX_Unmarshal(b []byte) error
- type MsgID
- type MsgType
- type PkgMsg
- func (*PkgMsg) Descriptor() ([]byte, []int)
- func (m *PkgMsg) GetMsgid() MsgID
- func (m *PkgMsg) GetPayload() []byte
- func (m *PkgMsg) GetType() MsgType
- func (m *PkgMsg) Marshal() (dAtA []byte, err error)
- func (m *PkgMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *PkgMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PkgMsg) ProtoMessage()
- func (m *PkgMsg) Reset()
- func (m *PkgMsg) Size() (n int)
- func (m *PkgMsg) String() string
- func (m *PkgMsg) Unmarshal(dAtA []byte) error
- func (m *PkgMsg) XXX_DiscardUnknown()
- func (m *PkgMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PkgMsg) XXX_Merge(src proto.Message)
- func (m *PkgMsg) XXX_Size() int
- func (m *PkgMsg) XXX_Unmarshal(b []byte) error
- type PlayingArg
- func (*PlayingArg) Descriptor() ([]byte, []int)
- func (m *PlayingArg) GetAngle() int32
- func (m *PlayingArg) GetVigor() int32
- func (m *PlayingArg) Marshal() (dAtA []byte, err error)
- func (m *PlayingArg) MarshalTo(dAtA []byte) (int, error)
- func (m *PlayingArg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PlayingArg) ProtoMessage()
- func (m *PlayingArg) Reset()
- func (m *PlayingArg) Size() (n int)
- func (m *PlayingArg) String() string
- func (m *PlayingArg) Unmarshal(dAtA []byte) error
- func (m *PlayingArg) XXX_DiscardUnknown()
- func (m *PlayingArg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlayingArg) XXX_Merge(src proto.Message)
- func (m *PlayingArg) XXX_Size() int
- func (m *PlayingArg) XXX_Unmarshal(b []byte) error
- type ServerTime
- func (*ServerTime) Descriptor() ([]byte, []int)
- func (m *ServerTime) GetTime() int64
- func (m *ServerTime) Marshal() (dAtA []byte, err error)
- func (m *ServerTime) MarshalTo(dAtA []byte) (int, error)
- func (m *ServerTime) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ServerTime) ProtoMessage()
- func (m *ServerTime) Reset()
- func (m *ServerTime) Size() (n int)
- func (m *ServerTime) String() string
- func (m *ServerTime) Unmarshal(dAtA []byte) error
- func (m *ServerTime) XXX_DiscardUnknown()
- func (m *ServerTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServerTime) XXX_Merge(src proto.Message)
- func (m *ServerTime) XXX_Size() int
- func (m *ServerTime) XXX_Unmarshal(b []byte) error
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) GetChannel ¶
func (*Config) GetServerTime ¶
func (*Config) GetVersion ¶
func (*Config) MarshalToSizedBuffer ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
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) MarshalToSizedBuffer ¶
func (*ErrMsg) ProtoMessage ¶
func (*ErrMsg) ProtoMessage()
func (*ErrMsg) XXX_DiscardUnknown ¶
func (m *ErrMsg) XXX_DiscardUnknown()
func (*ErrMsg) XXX_Marshal ¶
func (*ErrMsg) XXX_Unmarshal ¶
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) GetAccount ¶
func (*LoginArg) GetClientType ¶
func (*LoginArg) GetClientVer ¶
func (*LoginArg) GetPassword ¶
func (*LoginArg) MarshalToSizedBuffer ¶
func (*LoginArg) ProtoMessage ¶
func (*LoginArg) ProtoMessage()
func (*LoginArg) XXX_DiscardUnknown ¶
func (m *LoginArg) XXX_DiscardUnknown()
func (*LoginArg) XXX_Marshal ¶
func (*LoginArg) XXX_Unmarshal ¶
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) GetNickname ¶
func (*LoginResp) MarshalToSizedBuffer ¶
func (*LoginResp) ProtoMessage ¶
func (*LoginResp) ProtoMessage()
func (*LoginResp) XXX_DiscardUnknown ¶
func (m *LoginResp) XXX_DiscardUnknown()
func (*LoginResp) XXX_Marshal ¶
func (*LoginResp) XXX_Unmarshal ¶
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) GetPayload ¶
func (*PkgMsg) MarshalToSizedBuffer ¶
func (*PkgMsg) ProtoMessage ¶
func (*PkgMsg) ProtoMessage()
func (*PkgMsg) XXX_DiscardUnknown ¶
func (m *PkgMsg) XXX_DiscardUnknown()
func (*PkgMsg) XXX_Marshal ¶
func (*PkgMsg) XXX_Unmarshal ¶
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) 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) 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
Click to show internal directories.
Click to hide internal directories.