rpc

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

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

func (*VerifyReq) GetCheckCode

func (m *VerifyReq) GetCheckCode() string

func (*VerifyReq) GetGameId

func (m *VerifyReq) GetGameId() int32

func (*VerifyReq) GetServer

func (m *VerifyReq) GetServer() string

func (*VerifyReq) GetVersion

func (m *VerifyReq) GetVersion() 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

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

func (*VerifyRsp) GetAccount

func (m *VerifyRsp) GetAccount() []byte

func (*VerifyRsp) GetSuccess

func (m *VerifyRsp) GetSuccess() bool

func (*VerifyRsp) Marshal

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

func (*VerifyRsp) MarshalTo

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

func (*VerifyRsp) ProtoMessage

func (*VerifyRsp) ProtoMessage()

func (*VerifyRsp) Reset

func (m *VerifyRsp) Reset()

func (*VerifyRsp) Size

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

func (*VerifyRsp) String

func (m *VerifyRsp) String() string

func (*VerifyRsp) Unmarshal

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

func (*VerifyRsp) XXX_DiscardUnknown

func (m *VerifyRsp) XXX_DiscardUnknown()

func (*VerifyRsp) XXX_Marshal

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

func (*VerifyRsp) XXX_Merge

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

func (*VerifyRsp) XXX_Size

func (m *VerifyRsp) XXX_Size() int

func (*VerifyRsp) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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