Documentation
¶
Index ¶
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, 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 UnsafeUserServiceServer
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_api_grpc_user_v1_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LoginByPhone", Handler: _UserService_LoginByPhone_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/grpc/user/v1/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, 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 must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) LoginByPhone ¶
func (UnimplementedUserServiceServer) LoginByPhone(context.Context, *PhoneLoginRequest) (*PhoneLoginReply, error)
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface {
LoginByPhone(context.Context, *PhoneLoginRequest) (*PhoneLoginReply, error)
// contains filtered or unexported methods
}
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility