Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorLoginFailed(format string, args ...interface{}) *errors.Error
- func ErrorRegisterFailed(format string, args ...interface{}) *errors.Error
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func ErrorUsernameConflict(format string, args ...interface{}) *errors.Error
- func IsLoginFailed(err error) bool
- func IsRegisterFailed(err error) bool
- func IsUnknownError(err error) bool
- func IsUsernameConflict(err error) bool
- func RegisterCenterAdminHTTPServer(s *http.Server, srv CenterAdminHTTPServer)
- func RegisterCenterAdminServer(s grpc.ServiceRegistrar, srv CenterAdminServer)
- type CenterAdminClient
- type CenterAdminErrorReason
- func (CenterAdminErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x CenterAdminErrorReason) Enum() *CenterAdminErrorReason
- func (CenterAdminErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x CenterAdminErrorReason) Number() protoreflect.EnumNumber
- func (x CenterAdminErrorReason) String() string
- func (CenterAdminErrorReason) Type() protoreflect.EnumType
- type CenterAdminHTTPClient
- type CenterAdminHTTPClientImpl
- func (c *CenterAdminHTTPClientImpl) ActivateUser(ctx context.Context, in *UserIdReq, opts ...http.CallOption) (*UserOkReply, error)
- func (c *CenterAdminHTTPClientImpl) DeactivateUser(ctx context.Context, in *UserIdReq, opts ...http.CallOption) (*UserOkReply, error)
- func (c *CenterAdminHTTPClientImpl) GetUser(ctx context.Context, in *GetUserReq, opts ...http.CallOption) (*GetUserReply, error)
- func (c *CenterAdminHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*ListUserReply, error)
- func (c *CenterAdminHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginReply, error)
- func (c *CenterAdminHTTPClientImpl) Logout(ctx context.Context, in *LogoutReq, opts ...http.CallOption) (*LogoutReply, error)
- type CenterAdminHTTPServer
- type CenterAdminServer
- type GetUserReply
- func (*GetUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserReply) GetId() int64
- func (x *GetUserReply) GetIsActive() bool
- func (x *GetUserReply) GetUsername() string
- func (*GetUserReply) ProtoMessage()
- func (x *GetUserReply) ProtoReflect() protoreflect.Message
- func (x *GetUserReply) Reset()
- func (x *GetUserReply) String() string
- func (m *GetUserReply) Validate() error
- func (m *GetUserReply) ValidateAll() error
- type GetUserReplyMultiError
- type GetUserReplyValidationError
- func (e GetUserReplyValidationError) Cause() error
- func (e GetUserReplyValidationError) Error() string
- func (e GetUserReplyValidationError) ErrorName() string
- func (e GetUserReplyValidationError) Field() string
- func (e GetUserReplyValidationError) Key() bool
- func (e GetUserReplyValidationError) Reason() string
- type GetUserReq
- func (*GetUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserReq) GetId() int64
- func (*GetUserReq) ProtoMessage()
- func (x *GetUserReq) ProtoReflect() protoreflect.Message
- func (x *GetUserReq) Reset()
- func (x *GetUserReq) String() string
- func (m *GetUserReq) Validate() error
- func (m *GetUserReq) ValidateAll() error
- type GetUserReqMultiError
- type GetUserReqValidationError
- type ListUserReply
- func (*ListUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserReply) GetResults() []*ListUserReply_User
- func (x *ListUserReply) GetTotal() int64
- func (*ListUserReply) ProtoMessage()
- func (x *ListUserReply) ProtoReflect() protoreflect.Message
- func (x *ListUserReply) Reset()
- func (x *ListUserReply) String() string
- func (m *ListUserReply) Validate() error
- func (m *ListUserReply) ValidateAll() error
- type ListUserReplyMultiError
- type ListUserReplyValidationError
- func (e ListUserReplyValidationError) Cause() error
- func (e ListUserReplyValidationError) Error() string
- func (e ListUserReplyValidationError) ErrorName() string
- func (e ListUserReplyValidationError) Field() string
- func (e ListUserReplyValidationError) Key() bool
- func (e ListUserReplyValidationError) Reason() string
- type ListUserReply_User
- func (*ListUserReply_User) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserReply_User) GetId() int64
- func (x *ListUserReply_User) GetUsername() string
- func (*ListUserReply_User) ProtoMessage()
- func (x *ListUserReply_User) ProtoReflect() protoreflect.Message
- func (x *ListUserReply_User) Reset()
- func (x *ListUserReply_User) String() string
- func (m *ListUserReply_User) Validate() error
- func (m *ListUserReply_User) ValidateAll() error
- type ListUserReply_UserMultiError
- type ListUserReply_UserValidationError
- func (e ListUserReply_UserValidationError) Cause() error
- func (e ListUserReply_UserValidationError) Error() string
- func (e ListUserReply_UserValidationError) ErrorName() string
- func (e ListUserReply_UserValidationError) Field() string
- func (e ListUserReply_UserValidationError) Key() bool
- func (e ListUserReply_UserValidationError) Reason() string
- type ListUserReq
- func (*ListUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserReq) GetPageIndex() int32
- func (x *ListUserReq) GetPageSize() int32
- func (*ListUserReq) ProtoMessage()
- func (x *ListUserReq) ProtoReflect() protoreflect.Message
- func (x *ListUserReq) Reset()
- func (x *ListUserReq) String() string
- func (m *ListUserReq) Validate() error
- func (m *ListUserReq) ValidateAll() error
- type ListUserReqMultiError
- type ListUserReqValidationError
- func (e ListUserReqValidationError) Cause() error
- func (e ListUserReqValidationError) Error() string
- func (e ListUserReqValidationError) ErrorName() string
- func (e ListUserReqValidationError) Field() string
- func (e ListUserReqValidationError) Key() bool
- func (e ListUserReqValidationError) Reason() string
- type LoginReply
- func (*LoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReply) GetToken() string
- func (*LoginReply) ProtoMessage()
- func (x *LoginReply) ProtoReflect() protoreflect.Message
- func (x *LoginReply) Reset()
- func (x *LoginReply) String() string
- func (m *LoginReply) Validate() error
- func (m *LoginReply) ValidateAll() error
- type LoginReplyMultiError
- type LoginReplyValidationError
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) GetPassword() string
- func (x *LoginReq) GetUsername() string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) String() string
- func (m *LoginReq) Validate() error
- func (m *LoginReq) ValidateAll() error
- type LoginReqMultiError
- type LoginReqValidationError
- type LogoutReply
- func (*LogoutReply) Descriptor() ([]byte, []int)deprecated
- func (*LogoutReply) ProtoMessage()
- func (x *LogoutReply) ProtoReflect() protoreflect.Message
- func (x *LogoutReply) Reset()
- func (x *LogoutReply) String() string
- func (m *LogoutReply) Validate() error
- func (m *LogoutReply) ValidateAll() error
- type LogoutReplyMultiError
- type LogoutReplyValidationError
- func (e LogoutReplyValidationError) Cause() error
- func (e LogoutReplyValidationError) Error() string
- func (e LogoutReplyValidationError) ErrorName() string
- func (e LogoutReplyValidationError) Field() string
- func (e LogoutReplyValidationError) Key() bool
- func (e LogoutReplyValidationError) Reason() string
- type LogoutReq
- type LogoutReqMultiError
- type LogoutReqValidationError
- type UnimplementedCenterAdminServer
- func (UnimplementedCenterAdminServer) ActivateUser(context.Context, *UserIdReq) (*UserOkReply, error)
- func (UnimplementedCenterAdminServer) DeactivateUser(context.Context, *UserIdReq) (*UserOkReply, error)
- func (UnimplementedCenterAdminServer) GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
- func (UnimplementedCenterAdminServer) ListUser(context.Context, *ListUserReq) (*ListUserReply, error)
- func (UnimplementedCenterAdminServer) Login(context.Context, *LoginReq) (*LoginReply, error)
- func (UnimplementedCenterAdminServer) Logout(context.Context, *LogoutReq) (*LogoutReply, error)
- type UnsafeCenterAdminServer
- type UserIdReq
- type UserOkReply
Constants ¶
const OperationCenterAdminActivateUser = "/center.admin.v1.CenterAdmin/ActivateUser"
const OperationCenterAdminDeactivateUser = "/center.admin.v1.CenterAdmin/DeactivateUser"
const OperationCenterAdminGetUser = "/center.admin.v1.CenterAdmin/GetUser"
const OperationCenterAdminListUser = "/center.admin.v1.CenterAdmin/ListUser"
const OperationCenterAdminLogin = "/center.admin.v1.CenterAdmin/Login"
const OperationCenterAdminLogout = "/center.admin.v1.CenterAdmin/Logout"
Variables ¶
var ( CenterAdminErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", 1: "LOGIN_FAILED", 2: "USERNAME_CONFLICT", 3: "REGISTER_FAILED", } CenterAdminErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, "LOGIN_FAILED": 1, "USERNAME_CONFLICT": 2, "REGISTER_FAILED": 3, } )
Enum value maps for CenterAdminErrorReason.
var CenterAdmin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "center.admin.v1.CenterAdmin", HandlerType: (*CenterAdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _CenterAdmin_Login_Handler, }, { MethodName: "Logout", Handler: _CenterAdmin_Logout_Handler, }, { MethodName: "GetUser", Handler: _CenterAdmin_GetUser_Handler, }, { MethodName: "ListUser", Handler: _CenterAdmin_ListUser_Handler, }, { MethodName: "DeactivateUser", Handler: _CenterAdmin_DeactivateUser_Handler, }, { MethodName: "ActivateUser", Handler: _CenterAdmin_ActivateUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/center_admin.proto", }
CenterAdmin_ServiceDesc is the grpc.ServiceDesc for CenterAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_center_admin_error_proto protoreflect.FileDescriptor
var File_v1_center_admin_proto protoreflect.FileDescriptor
Functions ¶
func ErrorLoginFailed ¶
func ErrorRegisterFailed ¶
func ErrorUnknownError ¶
func ErrorUsernameConflict ¶
func IsLoginFailed ¶
func IsRegisterFailed ¶
func IsUnknownError ¶
func IsUsernameConflict ¶
func RegisterCenterAdminHTTPServer ¶
func RegisterCenterAdminHTTPServer(s *http.Server, srv CenterAdminHTTPServer)
func RegisterCenterAdminServer ¶
func RegisterCenterAdminServer(s grpc.ServiceRegistrar, srv CenterAdminServer)
Types ¶
type CenterAdminClient ¶
type CenterAdminClient interface { Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginReply, error) Logout(ctx context.Context, in *LogoutReq, opts ...grpc.CallOption) (*LogoutReply, error) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserReply, error) ListUser(ctx context.Context, in *ListUserReq, opts ...grpc.CallOption) (*ListUserReply, error) DeactivateUser(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserOkReply, error) ActivateUser(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserOkReply, error) }
CenterAdminClient is the client API for CenterAdmin 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 NewCenterAdminClient ¶
func NewCenterAdminClient(cc grpc.ClientConnInterface) CenterAdminClient
type CenterAdminErrorReason ¶
type CenterAdminErrorReason int32
const ( CenterAdminErrorReason_UNKNOWN_ERROR CenterAdminErrorReason = 0 CenterAdminErrorReason_LOGIN_FAILED CenterAdminErrorReason = 1 CenterAdminErrorReason_USERNAME_CONFLICT CenterAdminErrorReason = 2 CenterAdminErrorReason_REGISTER_FAILED CenterAdminErrorReason = 3 )
func (CenterAdminErrorReason) Descriptor ¶
func (CenterAdminErrorReason) Descriptor() protoreflect.EnumDescriptor
func (CenterAdminErrorReason) Enum ¶
func (x CenterAdminErrorReason) Enum() *CenterAdminErrorReason
func (CenterAdminErrorReason) EnumDescriptor
deprecated
func (CenterAdminErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use CenterAdminErrorReason.Descriptor instead.
func (CenterAdminErrorReason) Number ¶
func (x CenterAdminErrorReason) Number() protoreflect.EnumNumber
func (CenterAdminErrorReason) String ¶
func (x CenterAdminErrorReason) String() string
func (CenterAdminErrorReason) Type ¶
func (CenterAdminErrorReason) Type() protoreflect.EnumType
type CenterAdminHTTPClient ¶
type CenterAdminHTTPClient interface { ActivateUser(ctx context.Context, req *UserIdReq, opts ...http.CallOption) (rsp *UserOkReply, err error) DeactivateUser(ctx context.Context, req *UserIdReq, opts ...http.CallOption) (rsp *UserOkReply, err error) GetUser(ctx context.Context, req *GetUserReq, opts ...http.CallOption) (rsp *GetUserReply, err error) ListUser(ctx context.Context, req *ListUserReq, opts ...http.CallOption) (rsp *ListUserReply, err error) Login(ctx context.Context, req *LoginReq, opts ...http.CallOption) (rsp *LoginReply, err error) Logout(ctx context.Context, req *LogoutReq, opts ...http.CallOption) (rsp *LogoutReply, err error) }
func NewCenterAdminHTTPClient ¶
func NewCenterAdminHTTPClient(client *http.Client) CenterAdminHTTPClient
type CenterAdminHTTPClientImpl ¶
type CenterAdminHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*CenterAdminHTTPClientImpl) ActivateUser ¶
func (c *CenterAdminHTTPClientImpl) ActivateUser(ctx context.Context, in *UserIdReq, opts ...http.CallOption) (*UserOkReply, error)
func (*CenterAdminHTTPClientImpl) DeactivateUser ¶
func (c *CenterAdminHTTPClientImpl) DeactivateUser(ctx context.Context, in *UserIdReq, opts ...http.CallOption) (*UserOkReply, error)
func (*CenterAdminHTTPClientImpl) GetUser ¶
func (c *CenterAdminHTTPClientImpl) GetUser(ctx context.Context, in *GetUserReq, opts ...http.CallOption) (*GetUserReply, error)
func (*CenterAdminHTTPClientImpl) ListUser ¶
func (c *CenterAdminHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*ListUserReply, error)
func (*CenterAdminHTTPClientImpl) Login ¶
func (c *CenterAdminHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginReply, error)
func (*CenterAdminHTTPClientImpl) Logout ¶
func (c *CenterAdminHTTPClientImpl) Logout(ctx context.Context, in *LogoutReq, opts ...http.CallOption) (*LogoutReply, error)
type CenterAdminHTTPServer ¶
type CenterAdminHTTPServer interface { ActivateUser(context.Context, *UserIdReq) (*UserOkReply, error) DeactivateUser(context.Context, *UserIdReq) (*UserOkReply, error) GetUser(context.Context, *GetUserReq) (*GetUserReply, error) ListUser(context.Context, *ListUserReq) (*ListUserReply, error) Login(context.Context, *LoginReq) (*LoginReply, error) Logout(context.Context, *LogoutReq) (*LogoutReply, error) }
type CenterAdminServer ¶
type CenterAdminServer interface { Login(context.Context, *LoginReq) (*LoginReply, error) Logout(context.Context, *LogoutReq) (*LogoutReply, error) GetUser(context.Context, *GetUserReq) (*GetUserReply, error) ListUser(context.Context, *ListUserReq) (*ListUserReply, error) DeactivateUser(context.Context, *UserIdReq) (*UserOkReply, error) ActivateUser(context.Context, *UserIdReq) (*UserOkReply, error) // contains filtered or unexported methods }
CenterAdminServer is the server API for CenterAdmin service. All implementations must embed UnimplementedCenterAdminServer for forward compatibility
type GetUserReply ¶
type GetUserReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` IsActive bool `protobuf:"varint,3,opt,name=isActive,proto3" json:"isActive,omitempty"` // contains filtered or unexported fields }
func (*GetUserReply) Descriptor
deprecated
func (*GetUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.
func (*GetUserReply) GetId ¶
func (x *GetUserReply) GetId() int64
func (*GetUserReply) GetIsActive ¶
func (x *GetUserReply) GetIsActive() bool
func (*GetUserReply) GetUsername ¶
func (x *GetUserReply) GetUsername() string
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
func (*GetUserReply) Validate ¶
func (m *GetUserReply) Validate() error
Validate checks the field values on GetUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserReply) ValidateAll ¶
func (m *GetUserReply) ValidateAll() error
ValidateAll checks the field values on GetUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserReplyMultiError, or nil if none found.
type GetUserReplyMultiError ¶
type GetUserReplyMultiError []error
GetUserReplyMultiError is an error wrapping multiple validation errors returned by GetUserReply.ValidateAll() if the designated constraints aren't met.
func (GetUserReplyMultiError) AllErrors ¶
func (m GetUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserReplyMultiError) Error ¶
func (m GetUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserReplyValidationError ¶
type GetUserReplyValidationError struct {
// contains filtered or unexported fields
}
GetUserReplyValidationError is the validation error returned by GetUserReply.Validate if the designated constraints aren't met.
func (GetUserReplyValidationError) Cause ¶
func (e GetUserReplyValidationError) Cause() error
Cause function returns cause value.
func (GetUserReplyValidationError) Error ¶
func (e GetUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserReplyValidationError) ErrorName ¶
func (e GetUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserReplyValidationError) Field ¶
func (e GetUserReplyValidationError) Field() string
Field function returns field value.
func (GetUserReplyValidationError) Key ¶
func (e GetUserReplyValidationError) Key() bool
Key function returns key value.
func (GetUserReplyValidationError) Reason ¶
func (e GetUserReplyValidationError) Reason() string
Reason function returns reason value.
type GetUserReq ¶
type GetUserReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserReq) Descriptor
deprecated
func (*GetUserReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.
func (*GetUserReq) GetId ¶
func (x *GetUserReq) GetId() int64
func (*GetUserReq) ProtoMessage ¶
func (*GetUserReq) ProtoMessage()
func (*GetUserReq) ProtoReflect ¶
func (x *GetUserReq) ProtoReflect() protoreflect.Message
func (*GetUserReq) Reset ¶
func (x *GetUserReq) Reset()
func (*GetUserReq) String ¶
func (x *GetUserReq) String() string
func (*GetUserReq) Validate ¶
func (m *GetUserReq) Validate() error
Validate checks the field values on GetUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserReq) ValidateAll ¶
func (m *GetUserReq) ValidateAll() error
ValidateAll checks the field values on GetUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserReqMultiError, or nil if none found.
type GetUserReqMultiError ¶
type GetUserReqMultiError []error
GetUserReqMultiError is an error wrapping multiple validation errors returned by GetUserReq.ValidateAll() if the designated constraints aren't met.
func (GetUserReqMultiError) AllErrors ¶
func (m GetUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserReqMultiError) Error ¶
func (m GetUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserReqValidationError ¶
type GetUserReqValidationError struct {
// contains filtered or unexported fields
}
GetUserReqValidationError is the validation error returned by GetUserReq.Validate if the designated constraints aren't met.
func (GetUserReqValidationError) Cause ¶
func (e GetUserReqValidationError) Cause() error
Cause function returns cause value.
func (GetUserReqValidationError) Error ¶
func (e GetUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserReqValidationError) ErrorName ¶
func (e GetUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserReqValidationError) Field ¶
func (e GetUserReqValidationError) Field() string
Field function returns field value.
func (GetUserReqValidationError) Key ¶
func (e GetUserReqValidationError) Key() bool
Key function returns key value.
func (GetUserReqValidationError) Reason ¶
func (e GetUserReqValidationError) Reason() string
Reason function returns reason value.
type ListUserReply ¶
type ListUserReply struct { Results []*ListUserReply_User `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListUserReply) Descriptor
deprecated
func (*ListUserReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.
func (*ListUserReply) GetResults ¶
func (x *ListUserReply) GetResults() []*ListUserReply_User
func (*ListUserReply) GetTotal ¶
func (x *ListUserReply) GetTotal() int64
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
func (*ListUserReply) Validate ¶
func (m *ListUserReply) Validate() error
Validate checks the field values on ListUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListUserReply) ValidateAll ¶
func (m *ListUserReply) ValidateAll() error
ValidateAll checks the field values on ListUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserReplyMultiError, or nil if none found.
type ListUserReplyMultiError ¶
type ListUserReplyMultiError []error
ListUserReplyMultiError is an error wrapping multiple validation errors returned by ListUserReply.ValidateAll() if the designated constraints aren't met.
func (ListUserReplyMultiError) AllErrors ¶
func (m ListUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserReplyMultiError) Error ¶
func (m ListUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserReplyValidationError ¶
type ListUserReplyValidationError struct {
// contains filtered or unexported fields
}
ListUserReplyValidationError is the validation error returned by ListUserReply.Validate if the designated constraints aren't met.
func (ListUserReplyValidationError) Cause ¶
func (e ListUserReplyValidationError) Cause() error
Cause function returns cause value.
func (ListUserReplyValidationError) Error ¶
func (e ListUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserReplyValidationError) ErrorName ¶
func (e ListUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserReplyValidationError) Field ¶
func (e ListUserReplyValidationError) Field() string
Field function returns field value.
func (ListUserReplyValidationError) Key ¶
func (e ListUserReplyValidationError) Key() bool
Key function returns key value.
func (ListUserReplyValidationError) Reason ¶
func (e ListUserReplyValidationError) Reason() string
Reason function returns reason value.
type ListUserReply_User ¶
type ListUserReply_User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*ListUserReply_User) Descriptor
deprecated
func (*ListUserReply_User) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply_User.ProtoReflect.Descriptor instead.
func (*ListUserReply_User) GetId ¶
func (x *ListUserReply_User) GetId() int64
func (*ListUserReply_User) GetUsername ¶
func (x *ListUserReply_User) GetUsername() string
func (*ListUserReply_User) ProtoMessage ¶
func (*ListUserReply_User) ProtoMessage()
func (*ListUserReply_User) ProtoReflect ¶
func (x *ListUserReply_User) ProtoReflect() protoreflect.Message
func (*ListUserReply_User) Reset ¶
func (x *ListUserReply_User) Reset()
func (*ListUserReply_User) String ¶
func (x *ListUserReply_User) String() string
func (*ListUserReply_User) Validate ¶
func (m *ListUserReply_User) Validate() error
Validate checks the field values on ListUserReply_User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListUserReply_User) ValidateAll ¶
func (m *ListUserReply_User) ValidateAll() error
ValidateAll checks the field values on ListUserReply_User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserReply_UserMultiError, or nil if none found.
type ListUserReply_UserMultiError ¶
type ListUserReply_UserMultiError []error
ListUserReply_UserMultiError is an error wrapping multiple validation errors returned by ListUserReply_User.ValidateAll() if the designated constraints aren't met.
func (ListUserReply_UserMultiError) AllErrors ¶
func (m ListUserReply_UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserReply_UserMultiError) Error ¶
func (m ListUserReply_UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserReply_UserValidationError ¶
type ListUserReply_UserValidationError struct {
// contains filtered or unexported fields
}
ListUserReply_UserValidationError is the validation error returned by ListUserReply_User.Validate if the designated constraints aren't met.
func (ListUserReply_UserValidationError) Cause ¶
func (e ListUserReply_UserValidationError) Cause() error
Cause function returns cause value.
func (ListUserReply_UserValidationError) Error ¶
func (e ListUserReply_UserValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserReply_UserValidationError) ErrorName ¶
func (e ListUserReply_UserValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserReply_UserValidationError) Field ¶
func (e ListUserReply_UserValidationError) Field() string
Field function returns field value.
func (ListUserReply_UserValidationError) Key ¶
func (e ListUserReply_UserValidationError) Key() bool
Key function returns key value.
func (ListUserReply_UserValidationError) Reason ¶
func (e ListUserReply_UserValidationError) Reason() string
Reason function returns reason value.
type ListUserReq ¶
type ListUserReq struct { PageIndex int32 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*ListUserReq) Descriptor
deprecated
func (*ListUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReq.ProtoReflect.Descriptor instead.
func (*ListUserReq) GetPageIndex ¶
func (x *ListUserReq) GetPageIndex() int32
func (*ListUserReq) GetPageSize ¶
func (x *ListUserReq) GetPageSize() int32
func (*ListUserReq) ProtoMessage ¶
func (*ListUserReq) ProtoMessage()
func (*ListUserReq) ProtoReflect ¶
func (x *ListUserReq) ProtoReflect() protoreflect.Message
func (*ListUserReq) Reset ¶
func (x *ListUserReq) Reset()
func (*ListUserReq) String ¶
func (x *ListUserReq) String() string
func (*ListUserReq) Validate ¶
func (m *ListUserReq) Validate() error
Validate checks the field values on ListUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListUserReq) ValidateAll ¶
func (m *ListUserReq) ValidateAll() error
ValidateAll checks the field values on ListUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserReqMultiError, or nil if none found.
type ListUserReqMultiError ¶
type ListUserReqMultiError []error
ListUserReqMultiError is an error wrapping multiple validation errors returned by ListUserReq.ValidateAll() if the designated constraints aren't met.
func (ListUserReqMultiError) AllErrors ¶
func (m ListUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserReqMultiError) Error ¶
func (m ListUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserReqValidationError ¶
type ListUserReqValidationError struct {
// contains filtered or unexported fields
}
ListUserReqValidationError is the validation error returned by ListUserReq.Validate if the designated constraints aren't met.
func (ListUserReqValidationError) Cause ¶
func (e ListUserReqValidationError) Cause() error
Cause function returns cause value.
func (ListUserReqValidationError) Error ¶
func (e ListUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserReqValidationError) ErrorName ¶
func (e ListUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserReqValidationError) Field ¶
func (e ListUserReqValidationError) Field() string
Field function returns field value.
func (ListUserReqValidationError) Key ¶
func (e ListUserReqValidationError) Key() bool
Key function returns key value.
func (ListUserReqValidationError) Reason ¶
func (e ListUserReqValidationError) Reason() string
Reason function returns reason value.
type LoginReply ¶
type LoginReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetToken ¶
func (x *LoginReply) GetToken() string
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
func (x *LoginReply) ProtoReflect() protoreflect.Message
func (*LoginReply) Reset ¶
func (x *LoginReply) Reset()
func (*LoginReply) String ¶
func (x *LoginReply) String() string
func (*LoginReply) Validate ¶
func (m *LoginReply) Validate() error
Validate checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginReply) ValidateAll ¶
func (m *LoginReply) ValidateAll() error
ValidateAll checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReplyMultiError, or nil if none found.
type LoginReplyMultiError ¶
type LoginReplyMultiError []error
LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.
func (LoginReplyMultiError) AllErrors ¶
func (m LoginReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReplyMultiError) Error ¶
func (m LoginReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReplyValidationError ¶
type LoginReplyValidationError struct {
// contains filtered or unexported fields
}
LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.
func (LoginReplyValidationError) Cause ¶
func (e LoginReplyValidationError) Cause() error
Cause function returns cause value.
func (LoginReplyValidationError) Error ¶
func (e LoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReplyValidationError) ErrorName ¶
func (e LoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReplyValidationError) Field ¶
func (e LoginReplyValidationError) Field() string
Field function returns field value.
func (LoginReplyValidationError) Key ¶
func (e LoginReplyValidationError) Key() bool
Key function returns key value.
func (LoginReplyValidationError) Reason ¶
func (e LoginReplyValidationError) Reason() string
Reason function returns reason value.
type LoginReq ¶
type LoginReq 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 (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetPassword ¶
func (*LoginReq) GetUsername ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
func (*LoginReq) Validate ¶
Validate checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginReq) ValidateAll ¶
ValidateAll checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReqMultiError, or nil if none found.
type LoginReqMultiError ¶
type LoginReqMultiError []error
LoginReqMultiError is an error wrapping multiple validation errors returned by LoginReq.ValidateAll() if the designated constraints aren't met.
func (LoginReqMultiError) AllErrors ¶
func (m LoginReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReqMultiError) Error ¶
func (m LoginReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReqValidationError ¶
type LoginReqValidationError struct {
// contains filtered or unexported fields
}
LoginReqValidationError is the validation error returned by LoginReq.Validate if the designated constraints aren't met.
func (LoginReqValidationError) Cause ¶
func (e LoginReqValidationError) Cause() error
Cause function returns cause value.
func (LoginReqValidationError) Error ¶
func (e LoginReqValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReqValidationError) ErrorName ¶
func (e LoginReqValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReqValidationError) Field ¶
func (e LoginReqValidationError) Field() string
Field function returns field value.
func (LoginReqValidationError) Key ¶
func (e LoginReqValidationError) Key() bool
Key function returns key value.
func (LoginReqValidationError) Reason ¶
func (e LoginReqValidationError) Reason() string
Reason function returns reason value.
type LogoutReply ¶
type LogoutReply struct {
// contains filtered or unexported fields
}
func (*LogoutReply) Descriptor
deprecated
func (*LogoutReply) Descriptor() ([]byte, []int)
Deprecated: Use LogoutReply.ProtoReflect.Descriptor instead.
func (*LogoutReply) ProtoMessage ¶
func (*LogoutReply) ProtoMessage()
func (*LogoutReply) ProtoReflect ¶
func (x *LogoutReply) ProtoReflect() protoreflect.Message
func (*LogoutReply) Reset ¶
func (x *LogoutReply) Reset()
func (*LogoutReply) String ¶
func (x *LogoutReply) String() string
func (*LogoutReply) Validate ¶
func (m *LogoutReply) Validate() error
Validate checks the field values on LogoutReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LogoutReply) ValidateAll ¶
func (m *LogoutReply) ValidateAll() error
ValidateAll checks the field values on LogoutReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutReplyMultiError, or nil if none found.
type LogoutReplyMultiError ¶
type LogoutReplyMultiError []error
LogoutReplyMultiError is an error wrapping multiple validation errors returned by LogoutReply.ValidateAll() if the designated constraints aren't met.
func (LogoutReplyMultiError) AllErrors ¶
func (m LogoutReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutReplyMultiError) Error ¶
func (m LogoutReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutReplyValidationError ¶
type LogoutReplyValidationError struct {
// contains filtered or unexported fields
}
LogoutReplyValidationError is the validation error returned by LogoutReply.Validate if the designated constraints aren't met.
func (LogoutReplyValidationError) Cause ¶
func (e LogoutReplyValidationError) Cause() error
Cause function returns cause value.
func (LogoutReplyValidationError) Error ¶
func (e LogoutReplyValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutReplyValidationError) ErrorName ¶
func (e LogoutReplyValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutReplyValidationError) Field ¶
func (e LogoutReplyValidationError) Field() string
Field function returns field value.
func (LogoutReplyValidationError) Key ¶
func (e LogoutReplyValidationError) Key() bool
Key function returns key value.
func (LogoutReplyValidationError) Reason ¶
func (e LogoutReplyValidationError) Reason() string
Reason function returns reason value.
type LogoutReq ¶
type LogoutReq struct {
// contains filtered or unexported fields
}
func (*LogoutReq) Descriptor
deprecated
func (*LogoutReq) ProtoMessage ¶
func (*LogoutReq) ProtoMessage()
func (*LogoutReq) ProtoReflect ¶
func (x *LogoutReq) ProtoReflect() protoreflect.Message
func (*LogoutReq) Validate ¶
Validate checks the field values on LogoutReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LogoutReq) ValidateAll ¶
ValidateAll checks the field values on LogoutReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutReqMultiError, or nil if none found.
type LogoutReqMultiError ¶
type LogoutReqMultiError []error
LogoutReqMultiError is an error wrapping multiple validation errors returned by LogoutReq.ValidateAll() if the designated constraints aren't met.
func (LogoutReqMultiError) AllErrors ¶
func (m LogoutReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutReqMultiError) Error ¶
func (m LogoutReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutReqValidationError ¶
type LogoutReqValidationError struct {
// contains filtered or unexported fields
}
LogoutReqValidationError is the validation error returned by LogoutReq.Validate if the designated constraints aren't met.
func (LogoutReqValidationError) Cause ¶
func (e LogoutReqValidationError) Cause() error
Cause function returns cause value.
func (LogoutReqValidationError) Error ¶
func (e LogoutReqValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutReqValidationError) ErrorName ¶
func (e LogoutReqValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutReqValidationError) Field ¶
func (e LogoutReqValidationError) Field() string
Field function returns field value.
func (LogoutReqValidationError) Key ¶
func (e LogoutReqValidationError) Key() bool
Key function returns key value.
func (LogoutReqValidationError) Reason ¶
func (e LogoutReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCenterAdminServer ¶
type UnimplementedCenterAdminServer struct { }
UnimplementedCenterAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedCenterAdminServer) ActivateUser ¶
func (UnimplementedCenterAdminServer) ActivateUser(context.Context, *UserIdReq) (*UserOkReply, error)
func (UnimplementedCenterAdminServer) DeactivateUser ¶
func (UnimplementedCenterAdminServer) DeactivateUser(context.Context, *UserIdReq) (*UserOkReply, error)
func (UnimplementedCenterAdminServer) GetUser ¶
func (UnimplementedCenterAdminServer) GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
func (UnimplementedCenterAdminServer) ListUser ¶
func (UnimplementedCenterAdminServer) ListUser(context.Context, *ListUserReq) (*ListUserReply, error)
func (UnimplementedCenterAdminServer) Login ¶
func (UnimplementedCenterAdminServer) Login(context.Context, *LoginReq) (*LoginReply, error)
func (UnimplementedCenterAdminServer) Logout ¶
func (UnimplementedCenterAdminServer) Logout(context.Context, *LogoutReq) (*LogoutReply, error)
type UnsafeCenterAdminServer ¶
type UnsafeCenterAdminServer interface {
// contains filtered or unexported methods
}
UnsafeCenterAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CenterAdminServer will result in compilation errors.
type UserIdReq ¶
type UserIdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserIdReq) Descriptor
deprecated
func (*UserIdReq) ProtoMessage ¶
func (*UserIdReq) ProtoMessage()
func (*UserIdReq) ProtoReflect ¶
func (x *UserIdReq) ProtoReflect() protoreflect.Message
type UserOkReply ¶
type UserOkReply struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*UserOkReply) Descriptor
deprecated
func (*UserOkReply) Descriptor() ([]byte, []int)
Deprecated: Use UserOkReply.ProtoReflect.Descriptor instead.
func (*UserOkReply) GetOk ¶
func (x *UserOkReply) GetOk() bool
func (*UserOkReply) ProtoMessage ¶
func (*UserOkReply) ProtoMessage()
func (*UserOkReply) ProtoReflect ¶
func (x *UserOkReply) ProtoReflect() protoreflect.Message
func (*UserOkReply) Reset ¶
func (x *UserOkReply) Reset()
func (*UserOkReply) String ¶
func (x *UserOkReply) String() string