Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSessionHTTPServer(s *http.Server, srv SessionHTTPServer)
- func RegisterSessionServer(s grpc.ServiceRegistrar, srv SessionServer)
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type CreateSessionReply
- func (*CreateSessionReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionReply) GetStatusCode() int32
- func (x *CreateSessionReply) GetStatusMsg() string
- func (x *CreateSessionReply) GetToken() string
- func (x *CreateSessionReply) GetUserId() int64
- func (*CreateSessionReply) ProtoMessage()
- func (x *CreateSessionReply) ProtoReflect() protoreflect.Message
- func (x *CreateSessionReply) Reset()
- func (x *CreateSessionReply) String() string
- type CreateSessionRequest
- func (*CreateSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionRequest) GetPassword() string
- func (x *CreateSessionRequest) GetUsername() string
- func (*CreateSessionRequest) ProtoMessage()
- func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSessionRequest) Reset()
- func (x *CreateSessionRequest) String() string
- type CreateUserReply
- func (*CreateUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReply) GetStatusCode() int32
- func (x *CreateUserReply) GetStatusMsg() string
- func (x *CreateUserReply) GetToken() string
- func (x *CreateUserReply) GetUserId() int64
- func (*CreateUserReply) ProtoMessage()
- func (x *CreateUserReply) ProtoReflect() protoreflect.Message
- func (x *CreateUserReply) Reset()
- func (x *CreateUserReply) String() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetPassword() string
- func (x *CreateUserRequest) GetUsername() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type DeleteSessionReply
- type DeleteSessionRequest
- type DeleteUserReply
- type DeleteUserRequest
- type GetSessionReply
- type GetSessionRequest
- type GetUserReply
- type GetUserRequest
- type ListSessionReply
- type ListSessionRequest
- type ListUserReply
- type ListUserRequest
- type SessionClient
- type SessionHTTPClient
- type SessionHTTPClientImpl
- type SessionHTTPServer
- type SessionServer
- type UnimplementedSessionServer
- func (UnimplementedSessionServer) CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionReply, error)
- func (UnimplementedSessionServer) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionReply, error)
- func (UnimplementedSessionServer) GetSession(context.Context, *GetSessionRequest) (*GetSessionReply, error)
- func (UnimplementedSessionServer) ListSession(context.Context, *ListSessionRequest) (*ListSessionReply, error)
- func (UnimplementedSessionServer) UpdateSession(context.Context, *UpdateSessionRequest) (*UpdateSessionReply, error)
- type UnimplementedUserServer
- func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
- func (UnimplementedUserServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, 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 UnsafeSessionServer
- type UnsafeUserServer
- type UpdateSessionReply
- type UpdateSessionRequest
- type UpdateUserReply
- type UpdateUserRequest
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- type UserHTTPServer
- type UserServer
Constants ¶
const ( Session_CreateSession_FullMethodName = "/api.user.v1.Session/CreateSession" Session_UpdateSession_FullMethodName = "/api.user.v1.Session/UpdateSession" Session_DeleteSession_FullMethodName = "/api.user.v1.Session/DeleteSession" Session_GetSession_FullMethodName = "/api.user.v1.Session/GetSession" Session_ListSession_FullMethodName = "/api.user.v1.Session/ListSession" )
const ( User_CreateUser_FullMethodName = "/api.user.v1.User/CreateUser" User_UpdateUser_FullMethodName = "/api.user.v1.User/UpdateUser" User_DeleteUser_FullMethodName = "/api.user.v1.User/DeleteUser" User_GetUser_FullMethodName = "/api.user.v1.User/GetUser" User_ListUser_FullMethodName = "/api.user.v1.User/ListUser" )
const OperationSessionCreateSession = "/api.user.v1.Session/CreateSession"
const OperationUserCreateUser = "/api.user.v1.User/CreateUser"
Variables ¶
var File_api_user_v1_session_proto protoreflect.FileDescriptor
var File_api_user_v1_user_proto protoreflect.FileDescriptor
var Session_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.v1.Session", HandlerType: (*SessionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateSession", Handler: _Session_CreateSession_Handler, }, { MethodName: "UpdateSession", Handler: _Session_UpdateSession_Handler, }, { MethodName: "DeleteSession", Handler: _Session_DeleteSession_Handler, }, { MethodName: "GetSession", Handler: _Session_GetSession_Handler, }, { MethodName: "ListSession", Handler: _Session_ListSession_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/v1/session.proto", }
Session_ServiceDesc is the grpc.ServiceDesc for Session service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.v1.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, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/v1/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 RegisterSessionHTTPServer ¶
func RegisterSessionHTTPServer(s *http.Server, srv SessionHTTPServer)
func RegisterSessionServer ¶
func RegisterSessionServer(s grpc.ServiceRegistrar, srv SessionServer)
func RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type CreateSessionReply ¶
type CreateSessionReply struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败 StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3,oneof" json:"status_msg,omitempty"` // 返回状态描述 UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token // contains filtered or unexported fields }
func (*CreateSessionReply) Descriptor
deprecated
func (*CreateSessionReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionReply.ProtoReflect.Descriptor instead.
func (*CreateSessionReply) GetStatusCode ¶
func (x *CreateSessionReply) GetStatusCode() int32
func (*CreateSessionReply) GetStatusMsg ¶
func (x *CreateSessionReply) GetStatusMsg() string
func (*CreateSessionReply) GetToken ¶
func (x *CreateSessionReply) GetToken() string
func (*CreateSessionReply) GetUserId ¶
func (x *CreateSessionReply) GetUserId() int64
func (*CreateSessionReply) ProtoMessage ¶
func (*CreateSessionReply) ProtoMessage()
func (*CreateSessionReply) ProtoReflect ¶
func (x *CreateSessionReply) ProtoReflect() protoreflect.Message
func (*CreateSessionReply) Reset ¶
func (x *CreateSessionReply) Reset()
func (*CreateSessionReply) String ¶
func (x *CreateSessionReply) String() string
type CreateSessionRequest ¶
type CreateSessionRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 登录用户名 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 登录密码 // contains filtered or unexported fields }
func (*CreateSessionRequest) Descriptor
deprecated
func (*CreateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.
func (*CreateSessionRequest) GetPassword ¶
func (x *CreateSessionRequest) GetPassword() string
func (*CreateSessionRequest) GetUsername ¶
func (x *CreateSessionRequest) GetUsername() string
func (*CreateSessionRequest) ProtoMessage ¶
func (*CreateSessionRequest) ProtoMessage()
func (*CreateSessionRequest) ProtoReflect ¶
func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
func (*CreateSessionRequest) Reset ¶
func (x *CreateSessionRequest) Reset()
func (*CreateSessionRequest) String ¶
func (x *CreateSessionRequest) String() string
type CreateUserReply ¶
type CreateUserReply struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败 StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3,oneof" json:"status_msg,omitempty"` // 返回状态描述 UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token // contains filtered or unexported fields }
func (*CreateUserReply) Descriptor
deprecated
func (*CreateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.
func (*CreateUserReply) GetStatusCode ¶
func (x *CreateUserReply) GetStatusCode() int32
func (*CreateUserReply) GetStatusMsg ¶
func (x *CreateUserReply) GetStatusMsg() string
func (*CreateUserReply) GetToken ¶
func (x *CreateUserReply) GetToken() string
func (*CreateUserReply) GetUserId ¶
func (x *CreateUserReply) GetUserId() int64
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 { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 登录用户名 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 登录密码 // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetUsername ¶
func (x *CreateUserRequest) GetUsername() string
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 DeleteSessionReply ¶
type DeleteSessionReply struct {
// contains filtered or unexported fields
}
func (*DeleteSessionReply) Descriptor
deprecated
func (*DeleteSessionReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSessionReply.ProtoReflect.Descriptor instead.
func (*DeleteSessionReply) ProtoMessage ¶
func (*DeleteSessionReply) ProtoMessage()
func (*DeleteSessionReply) ProtoReflect ¶
func (x *DeleteSessionReply) ProtoReflect() protoreflect.Message
func (*DeleteSessionReply) Reset ¶
func (x *DeleteSessionReply) Reset()
func (*DeleteSessionReply) String ¶
func (x *DeleteSessionReply) String() string
type DeleteSessionRequest ¶
type DeleteSessionRequest struct {
// contains filtered or unexported fields
}
func (*DeleteSessionRequest) Descriptor
deprecated
func (*DeleteSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSessionRequest.ProtoReflect.Descriptor instead.
func (*DeleteSessionRequest) ProtoMessage ¶
func (*DeleteSessionRequest) ProtoMessage()
func (*DeleteSessionRequest) ProtoReflect ¶
func (x *DeleteSessionRequest) ProtoReflect() protoreflect.Message
func (*DeleteSessionRequest) Reset ¶
func (x *DeleteSessionRequest) Reset()
func (*DeleteSessionRequest) String ¶
func (x *DeleteSessionRequest) 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 GetSessionReply ¶
type GetSessionReply struct {
// contains filtered or unexported fields
}
func (*GetSessionReply) Descriptor
deprecated
func (*GetSessionReply) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionReply.ProtoReflect.Descriptor instead.
func (*GetSessionReply) ProtoMessage ¶
func (*GetSessionReply) ProtoMessage()
func (*GetSessionReply) ProtoReflect ¶
func (x *GetSessionReply) ProtoReflect() protoreflect.Message
func (*GetSessionReply) Reset ¶
func (x *GetSessionReply) Reset()
func (*GetSessionReply) String ¶
func (x *GetSessionReply) String() string
type GetSessionRequest ¶
type GetSessionRequest struct {
// contains filtered or unexported fields
}
func (*GetSessionRequest) Descriptor
deprecated
func (*GetSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionRequest.ProtoReflect.Descriptor instead.
func (*GetSessionRequest) ProtoMessage ¶
func (*GetSessionRequest) ProtoMessage()
func (*GetSessionRequest) ProtoReflect ¶
func (x *GetSessionRequest) ProtoReflect() protoreflect.Message
func (*GetSessionRequest) Reset ¶
func (x *GetSessionRequest) Reset()
func (*GetSessionRequest) String ¶
func (x *GetSessionRequest) 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 {
// contains filtered or unexported fields
}
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
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 ListSessionReply ¶
type ListSessionReply struct {
// contains filtered or unexported fields
}
func (*ListSessionReply) Descriptor
deprecated
func (*ListSessionReply) Descriptor() ([]byte, []int)
Deprecated: Use ListSessionReply.ProtoReflect.Descriptor instead.
func (*ListSessionReply) ProtoMessage ¶
func (*ListSessionReply) ProtoMessage()
func (*ListSessionReply) ProtoReflect ¶
func (x *ListSessionReply) ProtoReflect() protoreflect.Message
func (*ListSessionReply) Reset ¶
func (x *ListSessionReply) Reset()
func (*ListSessionReply) String ¶
func (x *ListSessionReply) String() string
type ListSessionRequest ¶
type ListSessionRequest struct {
// contains filtered or unexported fields
}
func (*ListSessionRequest) Descriptor
deprecated
func (*ListSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSessionRequest.ProtoReflect.Descriptor instead.
func (*ListSessionRequest) ProtoMessage ¶
func (*ListSessionRequest) ProtoMessage()
func (*ListSessionRequest) ProtoReflect ¶
func (x *ListSessionRequest) ProtoReflect() protoreflect.Message
func (*ListSessionRequest) Reset ¶
func (x *ListSessionRequest) Reset()
func (*ListSessionRequest) String ¶
func (x *ListSessionRequest) 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 SessionClient ¶
type SessionClient interface { CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*CreateSessionReply, error) UpdateSession(ctx context.Context, in *UpdateSessionRequest, opts ...grpc.CallOption) (*UpdateSessionReply, error) DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*DeleteSessionReply, error) GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*GetSessionReply, error) ListSession(ctx context.Context, in *ListSessionRequest, opts ...grpc.CallOption) (*ListSessionReply, error) }
SessionClient is the client API for Session 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 NewSessionClient ¶
func NewSessionClient(cc grpc.ClientConnInterface) SessionClient
type SessionHTTPClient ¶
type SessionHTTPClient interface {
CreateSession(ctx context.Context, req *CreateSessionRequest, opts ...http.CallOption) (rsp *CreateSessionReply, err error)
}
func NewSessionHTTPClient ¶
func NewSessionHTTPClient(client *http.Client) SessionHTTPClient
type SessionHTTPClientImpl ¶
type SessionHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*SessionHTTPClientImpl) CreateSession ¶
func (c *SessionHTTPClientImpl) CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...http.CallOption) (*CreateSessionReply, error)
type SessionHTTPServer ¶
type SessionHTTPServer interface {
CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionReply, error)
}
type SessionServer ¶
type SessionServer interface { CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionReply, error) UpdateSession(context.Context, *UpdateSessionRequest) (*UpdateSessionReply, error) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionReply, error) GetSession(context.Context, *GetSessionRequest) (*GetSessionReply, error) ListSession(context.Context, *ListSessionRequest) (*ListSessionReply, error) // contains filtered or unexported methods }
SessionServer is the server API for Session service. All implementations must embed UnimplementedSessionServer for forward compatibility
type UnimplementedSessionServer ¶
type UnimplementedSessionServer struct { }
UnimplementedSessionServer must be embedded to have forward compatible implementations.
func (UnimplementedSessionServer) CreateSession ¶
func (UnimplementedSessionServer) CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionReply, error)
func (UnimplementedSessionServer) DeleteSession ¶
func (UnimplementedSessionServer) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionReply, error)
func (UnimplementedSessionServer) GetSession ¶
func (UnimplementedSessionServer) GetSession(context.Context, *GetSessionRequest) (*GetSessionReply, error)
func (UnimplementedSessionServer) ListSession ¶
func (UnimplementedSessionServer) ListSession(context.Context, *ListSessionRequest) (*ListSessionReply, error)
func (UnimplementedSessionServer) UpdateSession ¶
func (UnimplementedSessionServer) UpdateSession(context.Context, *UpdateSessionRequest) (*UpdateSessionReply, error)
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) 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 UnsafeSessionServer ¶
type UnsafeSessionServer interface {
// contains filtered or unexported methods
}
UnsafeSessionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SessionServer will result in compilation errors.
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 UpdateSessionReply ¶
type UpdateSessionReply struct {
// contains filtered or unexported fields
}
func (*UpdateSessionReply) Descriptor
deprecated
func (*UpdateSessionReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSessionReply.ProtoReflect.Descriptor instead.
func (*UpdateSessionReply) ProtoMessage ¶
func (*UpdateSessionReply) ProtoMessage()
func (*UpdateSessionReply) ProtoReflect ¶
func (x *UpdateSessionReply) ProtoReflect() protoreflect.Message
func (*UpdateSessionReply) Reset ¶
func (x *UpdateSessionReply) Reset()
func (*UpdateSessionReply) String ¶
func (x *UpdateSessionReply) String() string
type UpdateSessionRequest ¶
type UpdateSessionRequest struct {
// contains filtered or unexported fields
}
func (*UpdateSessionRequest) Descriptor
deprecated
func (*UpdateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSessionRequest.ProtoReflect.Descriptor instead.
func (*UpdateSessionRequest) ProtoMessage ¶
func (*UpdateSessionRequest) ProtoMessage()
func (*UpdateSessionRequest) ProtoReflect ¶
func (x *UpdateSessionRequest) ProtoReflect() protoreflect.Message
func (*UpdateSessionRequest) Reset ¶
func (x *UpdateSessionRequest) Reset()
func (*UpdateSessionRequest) String ¶
func (x *UpdateSessionRequest) String() string
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) }
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 {
CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *CreateUserReply, err error)
}
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) CreateUser ¶
func (c *UserHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*CreateUserReply, error)
type UserHTTPServer ¶
type UserHTTPServer interface {
CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, 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) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility