Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) GetUserInfoBySearchKey(context.Context, *GetUserInfoBySearchKeyReq) (*GetUserInfoBySearchKeyRsp, error)
- func (UnimplementedUserServiceServer) Login(context.Context, *LoginReq) (*LoginRsp, error)
- func (UnimplementedUserServiceServer) Register(context.Context, *RegisterReq) (*RegisterRsp, error)
- type UnsafeUserServiceServer
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.psychological_experiment.user_info_server.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _UserService_Register_Handler, }, { MethodName: "Login", Handler: _UserService_Login_Handler, }, { MethodName: "GetUserInfoBySearchKey", Handler: _UserService_GetUserInfoBySearchKey_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user_info_server/user_info_server.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 UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) GetUserInfoBySearchKey ¶
func (UnimplementedUserServiceServer) GetUserInfoBySearchKey(context.Context, *GetUserInfoBySearchKeyReq) (*GetUserInfoBySearchKeyRsp, 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 { // register a user Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*RegisterRsp, error) // login a user Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginRsp, error) // 查询用户信息 GetUserInfoBySearchKey(ctx context.Context, in *GetUserInfoBySearchKeyReq, opts ...grpc.CallOption) (*GetUserInfoBySearchKeyRsp, 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 { // register a user Register(context.Context, *RegisterReq) (*RegisterRsp, error) // login a user Login(context.Context, *LoginReq) (*LoginRsp, error) // 查询用户信息 GetUserInfoBySearchKey(context.Context, *GetUserInfoBySearchKeyReq) (*GetUserInfoBySearchKeyRsp, error) }
UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility