Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type PhoneLoginReply
- func (*PhoneLoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *PhoneLoginReply) GetErr() string
- func (x *PhoneLoginReply) GetRet() string
- func (*PhoneLoginReply) ProtoMessage()
- func (x *PhoneLoginReply) ProtoReflect() protoreflect.Message
- func (x *PhoneLoginReply) Reset()
- func (x *PhoneLoginReply) String() string
- type PhoneLoginRequest
- func (*PhoneLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PhoneLoginRequest) GetPhone() int64
- func (x *PhoneLoginRequest) GetVerifyCode() int32
- func (*PhoneLoginRequest) ProtoMessage()
- func (x *PhoneLoginRequest) ProtoReflect() protoreflect.Message
- func (x *PhoneLoginRequest) Reset()
- func (x *PhoneLoginRequest) String() string
- type UnimplementedUserServiceServer
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
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 ¶
func (*UnimplementedUserServiceServer) LoginByPhone(context.Context, *PhoneLoginRequest) (*PhoneLoginReply, error)
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.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface {
LoginByPhone(context.Context, *PhoneLoginRequest) (*PhoneLoginReply, error)
}
UserServiceServer is the server API for UserService service.
Click to show internal directories.
Click to hide internal directories.