v0

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type PhoneLoginReply

type PhoneLoginReply struct {
	Ret string `protobuf:"bytes,1,opt,name=Ret,proto3" json:"Ret,omitempty"`
	Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*PhoneLoginReply) Descriptor deprecated

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

Deprecated: Use PhoneLoginReply.ProtoReflect.Descriptor instead.

func (*PhoneLoginReply) GetErr

func (x *PhoneLoginReply) GetErr() string

func (*PhoneLoginReply) GetRet

func (x *PhoneLoginReply) GetRet() string

func (*PhoneLoginReply) ProtoMessage

func (*PhoneLoginReply) ProtoMessage()

func (*PhoneLoginReply) ProtoReflect

func (x *PhoneLoginReply) ProtoReflect() protoreflect.Message

func (*PhoneLoginReply) Reset

func (x *PhoneLoginReply) Reset()

func (*PhoneLoginReply) String

func (x *PhoneLoginReply) String() string

type PhoneLoginRequest

type PhoneLoginRequest struct {
	Phone      int64 `protobuf:"varint,1,opt,name=Phone,proto3" json:"Phone,omitempty"`
	VerifyCode int32 `protobuf:"varint,2,opt,name=VerifyCode,proto3" json:"VerifyCode,omitempty"`
	// contains filtered or unexported fields
}

func (*PhoneLoginRequest) Descriptor deprecated

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

Deprecated: Use PhoneLoginRequest.ProtoReflect.Descriptor instead.

func (*PhoneLoginRequest) GetPhone

func (x *PhoneLoginRequest) GetPhone() int64

func (*PhoneLoginRequest) GetVerifyCode

func (x *PhoneLoginRequest) GetVerifyCode() int32

func (*PhoneLoginRequest) ProtoMessage

func (*PhoneLoginRequest) ProtoMessage()

func (*PhoneLoginRequest) ProtoReflect

func (x *PhoneLoginRequest) ProtoReflect() protoreflect.Message

func (*PhoneLoginRequest) Reset

func (x *PhoneLoginRequest) Reset()

func (*PhoneLoginRequest) String

func (x *PhoneLoginRequest) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) LoginByPhone

type UserServiceClient

type UserServiceClient interface {
	LoginByPhone(ctx context.Context, in *PhoneLoginRequest, opts ...grpc.CallOption) (*PhoneLoginReply, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type UserServiceServer

type UserServiceServer interface {
	LoginByPhone(context.Context, *PhoneLoginRequest) (*PhoneLoginReply, error)
}

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

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