Documentation ¶
Index ¶
- Variables
- func RegisterLoginServer(s *grpc.Server, srv LoginServer)
- type LoginClient
- type LoginServer
- type VerifyReq
- func (*VerifyReq) Descriptor() ([]byte, []int)
- func (m *VerifyReq) GetCheckCode() string
- func (m *VerifyReq) GetGameId() int32
- func (m *VerifyReq) GetServer() string
- func (m *VerifyReq) GetVersion() 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
- type VerifyRsp
- func (*VerifyRsp) Descriptor() ([]byte, []int)
- func (m *VerifyRsp) GetAccount() []byte
- func (m *VerifyRsp) GetSuccess() bool
- func (m *VerifyRsp) Marshal() (dAtA []byte, err error)
- func (m *VerifyRsp) MarshalTo(dAtA []byte) (int, error)
- func (*VerifyRsp) ProtoMessage()
- func (m *VerifyRsp) Reset()
- func (m *VerifyRsp) Size() (n int)
- func (m *VerifyRsp) String() string
- func (m *VerifyRsp) Unmarshal(dAtA []byte) error
- func (m *VerifyRsp) XXX_DiscardUnknown()
- func (m *VerifyRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerifyRsp) XXX_Merge(src proto.Message)
- func (m *VerifyRsp) XXX_Size() int
- func (m *VerifyRsp) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthLogin = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLogin = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterLoginServer ¶
func RegisterLoginServer(s *grpc.Server, srv LoginServer)
Types ¶
type LoginClient ¶
type LoginClient interface { // login verify code VerifyLogin(ctx context.Context, in *VerifyReq, opts ...grpc.CallOption) (*VerifyRsp, error) }
LoginClient is the client API for Login service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLoginClient ¶
func NewLoginClient(cc *grpc.ClientConn) LoginClient
type LoginServer ¶
type LoginServer interface { // login verify code VerifyLogin(context.Context, *VerifyReq) (*VerifyRsp, error) }
LoginServer is the server API for Login service.
type VerifyReq ¶
type VerifyReq struct { CheckCode *string `protobuf:"bytes,1,opt,name=checkCode" json:"checkCode,omitempty"` Server *string `protobuf:"bytes,2,opt,name=server" json:"server,omitempty"` GameId *int32 `protobuf:"varint,3,opt,name=gameId" json:"gameId,omitempty"` Version *string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
VerifyReq 账号验证请求
func (*VerifyReq) Descriptor ¶
func (*VerifyReq) GetCheckCode ¶
func (*VerifyReq) GetVersion ¶
func (*VerifyReq) ProtoMessage ¶
func (*VerifyReq) ProtoMessage()
func (*VerifyReq) XXX_DiscardUnknown ¶
func (m *VerifyReq) XXX_DiscardUnknown()
func (*VerifyReq) XXX_Marshal ¶
func (*VerifyReq) XXX_Unmarshal ¶
type VerifyRsp ¶
type VerifyRsp struct { Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` Account []byte `protobuf:"bytes,2,opt,name=account" json:"account,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
VerifyRsp 账号验证响应
func (*VerifyRsp) Descriptor ¶
func (*VerifyRsp) GetAccount ¶
func (*VerifyRsp) GetSuccess ¶
func (*VerifyRsp) ProtoMessage ¶
func (*VerifyRsp) ProtoMessage()
func (*VerifyRsp) XXX_DiscardUnknown ¶
func (m *VerifyRsp) XXX_DiscardUnknown()
func (*VerifyRsp) XXX_Marshal ¶
func (*VerifyRsp) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.