Documentation ¶
Index ¶
- Variables
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type CreateUserReply
- type CreateUserRequest
- type DeleteUserReply
- type DeleteUserRequest
- type GetLoginInfoReply
- type GetLoginInfoRequest
- func (*GetLoginInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLoginInfoRequest) GetEmail() string
- func (x *GetLoginInfoRequest) GetPhone() string
- func (*GetLoginInfoRequest) ProtoMessage()
- func (x *GetLoginInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetLoginInfoRequest) Reset()
- func (x *GetLoginInfoRequest) String() string
- type GetUserReply
- type GetUserRequest
- type ListUserReply
- type ListUserRequest
- type UnimplementedUserServer
- func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
- func (UnimplementedUserServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
- func (UnimplementedUserServer) GetLoginInfo(context.Context, *GetLoginInfoRequest) (*GetLoginInfoReply, error)
- func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
- func (UnimplementedUserServer) ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
- func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
- type UnsafeUserServer
- type UpdateUserReply
- type UpdateUserRequest
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- type UserHTTPServer
- type UserServer
Constants ¶
This section is empty.
Variables ¶
var File_api_user_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _User_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _User_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _User_DeleteUser_Handler, }, { MethodName: "GetUser", Handler: _User_GetUser_Handler, }, { MethodName: "ListUser", Handler: _User_ListUser_Handler, }, { MethodName: "GetLoginInfo", Handler: _User_GetLoginInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type CreateUserReply ¶
type CreateUserReply struct {
// contains filtered or unexported fields
}
func (*CreateUserReply) Descriptor
deprecated
func (*CreateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.
func (*CreateUserReply) ProtoMessage ¶
func (*CreateUserReply) ProtoMessage()
func (*CreateUserReply) ProtoReflect ¶
func (x *CreateUserReply) ProtoReflect() protoreflect.Message
func (*CreateUserReply) Reset ¶
func (x *CreateUserReply) Reset()
func (*CreateUserReply) String ¶
func (x *CreateUserReply) String() string
type CreateUserRequest ¶
type CreateUserRequest struct {
// contains filtered or unexported fields
}
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type DeleteUserReply ¶
type DeleteUserReply struct {
// contains filtered or unexported fields
}
func (*DeleteUserReply) Descriptor
deprecated
func (*DeleteUserReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserReply.ProtoReflect.Descriptor instead.
func (*DeleteUserReply) ProtoMessage ¶
func (*DeleteUserReply) ProtoMessage()
func (*DeleteUserReply) ProtoReflect ¶
func (x *DeleteUserReply) ProtoReflect() protoreflect.Message
func (*DeleteUserReply) Reset ¶
func (x *DeleteUserReply) Reset()
func (*DeleteUserReply) String ¶
func (x *DeleteUserReply) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct {
// contains filtered or unexported fields
}
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type GetLoginInfoReply ¶
type GetLoginInfoReply struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*GetLoginInfoReply) Descriptor
deprecated
func (*GetLoginInfoReply) Descriptor() ([]byte, []int)
Deprecated: Use GetLoginInfoReply.ProtoReflect.Descriptor instead.
func (*GetLoginInfoReply) GetUid ¶
func (x *GetLoginInfoReply) GetUid() string
func (*GetLoginInfoReply) ProtoMessage ¶
func (*GetLoginInfoReply) ProtoMessage()
func (*GetLoginInfoReply) ProtoReflect ¶
func (x *GetLoginInfoReply) ProtoReflect() protoreflect.Message
func (*GetLoginInfoReply) Reset ¶
func (x *GetLoginInfoReply) Reset()
func (*GetLoginInfoReply) String ¶
func (x *GetLoginInfoReply) String() string
type GetLoginInfoRequest ¶
type GetLoginInfoRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*GetLoginInfoRequest) Descriptor
deprecated
func (*GetLoginInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLoginInfoRequest.ProtoReflect.Descriptor instead.
func (*GetLoginInfoRequest) GetEmail ¶
func (x *GetLoginInfoRequest) GetEmail() string
func (*GetLoginInfoRequest) GetPhone ¶
func (x *GetLoginInfoRequest) GetPhone() string
func (*GetLoginInfoRequest) ProtoMessage ¶
func (*GetLoginInfoRequest) ProtoMessage()
func (*GetLoginInfoRequest) ProtoReflect ¶
func (x *GetLoginInfoRequest) ProtoReflect() protoreflect.Message
func (*GetLoginInfoRequest) Reset ¶
func (x *GetLoginInfoRequest) Reset()
func (*GetLoginInfoRequest) String ¶
func (x *GetLoginInfoRequest) String() string
type GetUserReply ¶
type GetUserReply struct {
// contains filtered or unexported fields
}
func (*GetUserReply) Descriptor
deprecated
func (*GetUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.
func (*GetUserReply) ProtoMessage ¶
func (*GetUserReply) ProtoMessage()
func (*GetUserReply) ProtoReflect ¶
func (x *GetUserReply) ProtoReflect() protoreflect.Message
func (*GetUserReply) Reset ¶
func (x *GetUserReply) Reset()
func (*GetUserReply) String ¶
func (x *GetUserReply) String() string
type GetUserRequest ¶
type GetUserRequest struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetUid ¶
func (x *GetUserRequest) GetUid() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type ListUserReply ¶
type ListUserReply struct {
// contains filtered or unexported fields
}
func (*ListUserReply) Descriptor
deprecated
func (*ListUserReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.
func (*ListUserReply) ProtoMessage ¶
func (*ListUserReply) ProtoMessage()
func (*ListUserReply) ProtoReflect ¶
func (x *ListUserReply) ProtoReflect() protoreflect.Message
func (*ListUserReply) Reset ¶
func (x *ListUserReply) Reset()
func (*ListUserReply) String ¶
func (x *ListUserReply) String() string
type ListUserRequest ¶
type ListUserRequest struct {
// contains filtered or unexported fields
}
func (*ListUserRequest) Descriptor
deprecated
func (*ListUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.
func (*ListUserRequest) ProtoMessage ¶
func (*ListUserRequest) ProtoMessage()
func (*ListUserRequest) ProtoReflect ¶
func (x *ListUserRequest) ProtoReflect() protoreflect.Message
func (*ListUserRequest) Reset ¶
func (x *ListUserRequest) Reset()
func (*ListUserRequest) String ¶
func (x *ListUserRequest) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) CreateUser ¶
func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
func (UnimplementedUserServer) DeleteUser ¶
func (UnimplementedUserServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
func (UnimplementedUserServer) GetLoginInfo ¶
func (UnimplementedUserServer) GetLoginInfo(context.Context, *GetLoginInfoRequest) (*GetLoginInfoReply, error)
func (UnimplementedUserServer) GetUser ¶
func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
func (UnimplementedUserServer) ListUser ¶
func (UnimplementedUserServer) ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
func (UnimplementedUserServer) UpdateUser ¶
func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UpdateUserReply ¶
type UpdateUserReply struct {
// contains filtered or unexported fields
}
func (*UpdateUserReply) Descriptor
deprecated
func (*UpdateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserReply.ProtoReflect.Descriptor instead.
func (*UpdateUserReply) ProtoMessage ¶
func (*UpdateUserReply) ProtoMessage()
func (*UpdateUserReply) ProtoReflect ¶
func (x *UpdateUserReply) ProtoReflect() protoreflect.Message
func (*UpdateUserReply) Reset ¶
func (x *UpdateUserReply) Reset()
func (*UpdateUserReply) String ¶
func (x *UpdateUserReply) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct {
// contains filtered or unexported fields
}
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UserClient ¶
type UserClient interface { CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserReply, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserReply, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserReply, error) GetLoginInfo(ctx context.Context, in *GetLoginInfoRequest, opts ...grpc.CallOption) (*GetLoginInfoReply, error) }
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserHTTPClient ¶
type UserHTTPClient interface {
GetLoginInfo(ctx context.Context, req *GetLoginInfoRequest, opts ...http.CallOption) (rsp *GetLoginInfoReply, err error)
}
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) GetLoginInfo ¶
func (c *UserHTTPClientImpl) GetLoginInfo(ctx context.Context, in *GetLoginInfoRequest, opts ...http.CallOption) (*GetLoginInfoReply, error)
type UserHTTPServer ¶
type UserHTTPServer interface {
GetLoginInfo(context.Context, *GetLoginInfoRequest) (*GetLoginInfoReply, error)
}
type UserServer ¶
type UserServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) ListUser(context.Context, *ListUserRequest) (*ListUserReply, error) GetLoginInfo(context.Context, *GetLoginInfoRequest) (*GetLoginInfoReply, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility