Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorConfirmPasswordMismatch(format string, args ...interface{}) *errors.Error
- func ErrorConfirmPasswordMismatchLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorDuplicateEmail(format string, args ...interface{}) *errors.Error
- func ErrorDuplicateEmailLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorDuplicatePhone(format string, args ...interface{}) *errors.Error
- func ErrorDuplicatePhoneLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorDuplicateUsername(format string, args ...interface{}) *errors.Error
- func ErrorDuplicateUsernameLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorInvalidEmail(format string, args ...interface{}) *errors.Error
- func ErrorInvalidEmailLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorInvalidPassword(format string, args ...interface{}) *errors.Error
- func ErrorInvalidPasswordLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorInvalidPhone(format string, args ...interface{}) *errors.Error
- func ErrorInvalidPhoneLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorInvalidUsername(format string, args ...interface{}) *errors.Error
- func ErrorInvalidUsernameLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorPasswordInsufficientStrength(format string, args ...interface{}) *errors.Error
- func ErrorPasswordInsufficientStrengthLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorUserNotFound(format string, args ...interface{}) *errors.Error
- func ErrorUserNotFoundLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func IsConfirmPasswordMismatch(err error) bool
- func IsDuplicateEmail(err error) bool
- func IsDuplicatePhone(err error) bool
- func IsDuplicateUsername(err error) bool
- func IsInvalidEmail(err error) bool
- func IsInvalidPassword(err error) bool
- func IsInvalidPhone(err error) bool
- func IsInvalidUsername(err error) bool
- func IsPasswordInsufficientStrength(err error) bool
- func IsUserNotFound(err error) bool
- func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type CheckUserTenantReply
- func (*CheckUserTenantReply) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserTenantReply) GetOk() bool
- func (*CheckUserTenantReply) ProtoMessage()
- func (x *CheckUserTenantReply) ProtoReflect() protoreflect.Message
- func (x *CheckUserTenantReply) Reset()
- func (x *CheckUserTenantReply) String() string
- func (m *CheckUserTenantReply) Validate() error
- func (m *CheckUserTenantReply) ValidateAll() error
- type CheckUserTenantReplyMultiError
- type CheckUserTenantReplyValidationError
- func (e CheckUserTenantReplyValidationError) Cause() error
- func (e CheckUserTenantReplyValidationError) Error() string
- func (e CheckUserTenantReplyValidationError) ErrorName() string
- func (e CheckUserTenantReplyValidationError) Field() string
- func (e CheckUserTenantReplyValidationError) Key() bool
- func (e CheckUserTenantReplyValidationError) Reason() string
- type CheckUserTenantRequest
- func (*CheckUserTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserTenantRequest) GetTenantId() string
- func (x *CheckUserTenantRequest) GetUserId() string
- func (*CheckUserTenantRequest) ProtoMessage()
- func (x *CheckUserTenantRequest) ProtoReflect() protoreflect.Message
- func (x *CheckUserTenantRequest) Reset()
- func (x *CheckUserTenantRequest) String() string
- func (m *CheckUserTenantRequest) Validate() error
- func (m *CheckUserTenantRequest) ValidateAll() error
- type CheckUserTenantRequestMultiError
- type CheckUserTenantRequestValidationError
- func (e CheckUserTenantRequestValidationError) Cause() error
- func (e CheckUserTenantRequestValidationError) Error() string
- func (e CheckUserTenantRequestValidationError) ErrorName() string
- func (e CheckUserTenantRequestValidationError) Field() string
- func (e CheckUserTenantRequestValidationError) Key() bool
- func (e CheckUserTenantRequestValidationError) Reason() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetAvatar() string
- func (x *CreateUserRequest) GetBirthday() *timestamppb.Timestamp
- func (x *CreateUserRequest) GetConfirmPassword() string
- func (x *CreateUserRequest) GetEmail() *wrapperspb.StringValue
- func (x *CreateUserRequest) GetGender() Gender
- func (x *CreateUserRequest) GetName() *wrapperspb.StringValue
- func (x *CreateUserRequest) GetPassword() string
- func (x *CreateUserRequest) GetPhone() *wrapperspb.StringValue
- func (x *CreateUserRequest) GetRolesId() []string
- func (x *CreateUserRequest) GetUsername() *wrapperspb.StringValue
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (x *CreateUserRequest) StringWithMask(mask string) string
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRequest) GetForce() bool
- func (x *DeleteUserRequest) GetId() string
- func (*DeleteUserRequest) ProtoMessage()
- func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRequest) Reset()
- func (x *DeleteUserRequest) String() string
- func (m *DeleteUserRequest) Validate() error
- func (m *DeleteUserRequest) ValidateAll() error
- type DeleteUserRequestMultiError
- type DeleteUserRequestValidationError
- func (e DeleteUserRequestValidationError) Cause() error
- func (e DeleteUserRequestValidationError) Error() string
- func (e DeleteUserRequestValidationError) ErrorName() string
- func (e DeleteUserRequestValidationError) Field() string
- func (e DeleteUserRequestValidationError) Key() bool
- func (e DeleteUserRequestValidationError) Reason() string
- type DeleteUserResponse
- func (*DeleteUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteUserResponse) ProtoMessage()
- func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserResponse) Reset()
- func (x *DeleteUserResponse) String() string
- func (m *DeleteUserResponse) Validate() error
- func (m *DeleteUserResponse) ValidateAll() error
- type DeleteUserResponseMultiError
- type DeleteUserResponseValidationError
- func (e DeleteUserResponseValidationError) Cause() error
- func (e DeleteUserResponseValidationError) Error() string
- func (e DeleteUserResponseValidationError) ErrorName() string
- func (e DeleteUserResponseValidationError) Field() string
- func (e DeleteUserResponseValidationError) Key() bool
- func (e DeleteUserResponseValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type Gender
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetId() string
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- func (m *GetUserRequest) Validate() error
- func (m *GetUserRequest) ValidateAll() error
- type GetUserRequestMultiError
- type GetUserRequestValidationError
- func (e GetUserRequestValidationError) Cause() error
- func (e GetUserRequestValidationError) Error() string
- func (e GetUserRequestValidationError) ErrorName() string
- func (e GetUserRequestValidationError) Field() string
- func (e GetUserRequestValidationError) Key() bool
- func (e GetUserRequestValidationError) Reason() string
- type GetUserRoleReply
- func (*GetUserRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRoleReply) GetRoles() []*UserRole
- func (*GetUserRoleReply) ProtoMessage()
- func (x *GetUserRoleReply) ProtoReflect() protoreflect.Message
- func (x *GetUserRoleReply) Reset()
- func (x *GetUserRoleReply) String() string
- func (m *GetUserRoleReply) Validate() error
- func (m *GetUserRoleReply) ValidateAll() error
- type GetUserRoleReplyMultiError
- type GetUserRoleReplyValidationError
- func (e GetUserRoleReplyValidationError) Cause() error
- func (e GetUserRoleReplyValidationError) Error() string
- func (e GetUserRoleReplyValidationError) ErrorName() string
- func (e GetUserRoleReplyValidationError) Field() string
- func (e GetUserRoleReplyValidationError) Key() bool
- func (e GetUserRoleReplyValidationError) Reason() string
- type GetUserRoleRequest
- func (*GetUserRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRoleRequest) GetId() string
- func (*GetUserRoleRequest) ProtoMessage()
- func (x *GetUserRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRoleRequest) Reset()
- func (x *GetUserRoleRequest) String() string
- func (m *GetUserRoleRequest) Validate() error
- func (m *GetUserRoleRequest) ValidateAll() error
- type GetUserRoleRequestMultiError
- type GetUserRoleRequestValidationError
- func (e GetUserRoleRequestValidationError) Cause() error
- func (e GetUserRoleRequestValidationError) Error() string
- func (e GetUserRoleRequestValidationError) ErrorName() string
- func (e GetUserRoleRequestValidationError) Field() string
- func (e GetUserRoleRequestValidationError) Key() bool
- func (e GetUserRoleRequestValidationError) Reason() string
- type InviteUserReply
- func (*InviteUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *InviteUserReply) GetRequiredConfirm() bool
- func (*InviteUserReply) ProtoMessage()
- func (x *InviteUserReply) ProtoReflect() protoreflect.Message
- func (x *InviteUserReply) Reset()
- func (x *InviteUserReply) String() string
- func (m *InviteUserReply) Validate() error
- func (m *InviteUserReply) ValidateAll() error
- type InviteUserReplyMultiError
- type InviteUserReplyValidationError
- func (e InviteUserReplyValidationError) Cause() error
- func (e InviteUserReplyValidationError) Error() string
- func (e InviteUserReplyValidationError) ErrorName() string
- func (e InviteUserReplyValidationError) Field() string
- func (e InviteUserReplyValidationError) Key() bool
- func (e InviteUserReplyValidationError) Reason() string
- type InviteUserRequest
- func (*InviteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InviteUserRequest) GetIdentify() string
- func (*InviteUserRequest) ProtoMessage()
- func (x *InviteUserRequest) ProtoReflect() protoreflect.Message
- func (x *InviteUserRequest) Reset()
- func (x *InviteUserRequest) String() string
- func (m *InviteUserRequest) Validate() error
- func (m *InviteUserRequest) ValidateAll() error
- type InviteUserRequestMultiError
- type InviteUserRequestValidationError
- func (e InviteUserRequestValidationError) Cause() error
- func (e InviteUserRequestValidationError) Error() string
- func (e InviteUserRequestValidationError) ErrorName() string
- func (e InviteUserRequestValidationError) Field() string
- func (e InviteUserRequestValidationError) Key() bool
- func (e InviteUserRequestValidationError) Reason() string
- type ListUsersRequest
- func (*ListUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersRequest) GetFields() *fieldmaskpb.FieldMask
- func (x *ListUsersRequest) GetFilter() *UserFilter
- func (x *ListUsersRequest) GetPageOffset() int32
- func (x *ListUsersRequest) GetPageSize() int32
- func (x *ListUsersRequest) GetSearch() string
- func (x *ListUsersRequest) GetSort() []string
- func (*ListUsersRequest) ProtoMessage()
- func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsersRequest) Reset()
- func (x *ListUsersRequest) String() string
- func (m *ListUsersRequest) Validate() error
- func (m *ListUsersRequest) ValidateAll() error
- type ListUsersRequestMultiError
- type ListUsersRequestValidationError
- func (e ListUsersRequestValidationError) Cause() error
- func (e ListUsersRequestValidationError) Error() string
- func (e ListUsersRequestValidationError) ErrorName() string
- func (e ListUsersRequestValidationError) Field() string
- func (e ListUsersRequestValidationError) Key() bool
- func (e ListUsersRequestValidationError) Reason() string
- type ListUsersResponse
- func (*ListUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersResponse) GetFilterSize() int32
- func (x *ListUsersResponse) GetItems() []*User
- func (x *ListUsersResponse) GetTotalSize() int32
- func (*ListUsersResponse) ProtoMessage()
- func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsersResponse) Reset()
- func (x *ListUsersResponse) String() string
- func (m *ListUsersResponse) Validate() error
- func (m *ListUsersResponse) ValidateAll() error
- type ListUsersResponseMultiError
- type ListUsersResponseValidationError
- func (e ListUsersResponseValidationError) Cause() error
- func (e ListUsersResponseValidationError) Error() string
- func (e ListUsersResponseValidationError) ErrorName() string
- func (e ListUsersResponseValidationError) Field() string
- func (e ListUsersResponseValidationError) Key() bool
- func (e ListUsersResponseValidationError) Reason() string
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CheckUserTenant(context.Context, *CheckUserTenantRequest) (*CheckUserTenantReply, error)
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) GetUserRoles(context.Context, *GetUserRoleRequest) (*GetUserRoleReply, error)
- func (UnimplementedUserServiceServer) InviteUser(context.Context, *InviteUserRequest) (*InviteUserReply, error)
- func (UnimplementedUserServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
- type UnsafeUserServiceServer
- type UpdateUser
- func (*UpdateUser) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUser) GetAvatar() string
- func (x *UpdateUser) GetBirthday() *timestamppb.Timestamp
- func (x *UpdateUser) GetConfirmPassword() string
- func (x *UpdateUser) GetEmail() *wrapperspb.StringValue
- func (x *UpdateUser) GetGender() Gender
- func (x *UpdateUser) GetId() string
- func (x *UpdateUser) GetName() *wrapperspb.StringValue
- func (x *UpdateUser) GetPassword() string
- func (x *UpdateUser) GetPhone() *wrapperspb.StringValue
- func (x *UpdateUser) GetRolesId() []string
- func (x *UpdateUser) GetUsername() *wrapperspb.StringValue
- func (*UpdateUser) ProtoMessage()
- func (x *UpdateUser) ProtoReflect() protoreflect.Message
- func (x *UpdateUser) Reset()
- func (x *UpdateUser) String() string
- func (m *UpdateUser) Validate() error
- func (m *UpdateUser) ValidateAll() error
- type UpdateUserMultiError
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (x *UpdateUserRequest) GetUser() *UpdateUser
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- func (x *UpdateUserRequest) StringWithMask(mask string) string
- func (m *UpdateUserRequest) Validate() error
- func (m *UpdateUserRequest) ValidateAll() error
- type UpdateUserRequestMultiError
- type UpdateUserRequestValidationError
- func (e UpdateUserRequestValidationError) Cause() error
- func (e UpdateUserRequestValidationError) Error() string
- func (e UpdateUserRequestValidationError) ErrorName() string
- func (e UpdateUserRequestValidationError) Field() string
- func (e UpdateUserRequestValidationError) Key() bool
- func (e UpdateUserRequestValidationError) Reason() string
- type UpdateUserValidationError
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() *blob.BlobFile
- func (x *User) GetBirthday() *timestamppb.Timestamp
- func (x *User) GetEmail() *wrapperspb.StringValue
- func (x *User) GetGender() Gender
- func (x *User) GetId() string
- func (x *User) GetName() *wrapperspb.StringValue
- func (x *User) GetPhone() *wrapperspb.StringValue
- func (x *User) GetRoles() []*v1.Role
- func (x *User) GetUsername() *wrapperspb.StringValue
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserFilter
- func (*UserFilter) Descriptor() ([]byte, []int)deprecated
- func (x *UserFilter) GetAnd() []*UserFilter
- func (x *UserFilter) GetBirthday() *query.DateFilterOperators
- func (x *UserFilter) GetGender() *query.StringFilterOperation
- func (x *UserFilter) GetId() *query.StringFilterOperation
- func (x *UserFilter) GetOr() []*UserFilter
- func (x *UserFilter) GetRoles() *v1.RoleFilter
- func (*UserFilter) ProtoMessage()
- func (x *UserFilter) ProtoReflect() protoreflect.Message
- func (x *UserFilter) Reset()
- func (x *UserFilter) String() string
- func (m *UserFilter) Validate() error
- func (m *UserFilter) ValidateAll() error
- type UserFilterMultiError
- type UserFilterValidationError
- type UserMultiError
- type UserRole
- func (*UserRole) Descriptor() ([]byte, []int)deprecated
- func (x *UserRole) GetId() string
- func (x *UserRole) GetName() string
- func (*UserRole) ProtoMessage()
- func (x *UserRole) ProtoReflect() protoreflect.Message
- func (x *UserRole) Reset()
- func (x *UserRole) String() string
- func (m *UserRole) Validate() error
- func (m *UserRole) ValidateAll() error
- type UserRoleMultiError
- type UserRoleValidationError
- type UserServiceClient
- type UserServiceHTTPClient
- type UserServiceHTTPClientImpl
- func (c *UserServiceHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*User, error)
- func (c *UserServiceHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*DeleteUserResponse, error)
- func (c *UserServiceHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*User, error)
- func (c *UserServiceHTTPClientImpl) GetUserRoles(ctx context.Context, in *GetUserRoleRequest, opts ...http.CallOption) (*GetUserRoleReply, error)
- func (c *UserServiceHTTPClientImpl) InviteUser(ctx context.Context, in *InviteUserRequest, opts ...http.CallOption) (*InviteUserReply, error)
- func (c *UserServiceHTTPClientImpl) ListUsers(ctx context.Context, in *ListUsersRequest, opts ...http.CallOption) (*ListUsersResponse, error)
- func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*User, error)
- type UserServiceHTTPServer
- type UserServiceServer
- type UserValidationError
Constants ¶
const OperationUserServiceCreateUser = "/user.api.user.v1.UserService/CreateUser"
const OperationUserServiceDeleteUser = "/user.api.user.v1.UserService/DeleteUser"
const OperationUserServiceGetUser = "/user.api.user.v1.UserService/GetUser"
const OperationUserServiceGetUserRoles = "/user.api.user.v1.UserService/GetUserRoles"
const OperationUserServiceInviteUser = "/user.api.user.v1.UserService/InviteUser"
const OperationUserServiceListUsers = "/user.api.user.v1.UserService/ListUsers"
const OperationUserServiceUpdateUser = "/user.api.user.v1.UserService/UpdateUser"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "CONFIRM_PASSWORD_MISMATCH", 1: "PASSWORD_INSUFFICIENT_STRENGTH", 2: "INVALID_PASSWORD", 3: "DUPLICATE_USERNAME", 4: "DUPLICATE_EMAIL", 5: "DUPLICATE_PHONE", 6: "INVALID_EMAIL", 7: "INVALID_PHONE", 8: "INVALID_USERNAME", 9: "USER_NOT_FOUND", } ErrorReason_value = map[string]int32{ "CONFIRM_PASSWORD_MISMATCH": 0, "PASSWORD_INSUFFICIENT_STRENGTH": 1, "INVALID_PASSWORD": 2, "DUPLICATE_USERNAME": 3, "DUPLICATE_EMAIL": 4, "DUPLICATE_PHONE": 5, "INVALID_EMAIL": 6, "INVALID_PHONE": 7, "INVALID_USERNAME": 8, "USER_NOT_FOUND": 9, } )
Enum value maps for ErrorReason.
var ( Gender_name = map[int32]string{ 0: "UNKNOWN", 1: "MALE", 2: "FEMALE", 3: "OTHER", } Gender_value = map[string]int32{ "UNKNOWN": 0, "MALE": 1, "FEMALE": 2, "OTHER": 3, } )
Enum value maps for Gender.
var File_user_api_user_v1_error_reason_proto protoreflect.FileDescriptor
var File_user_api_user_v1_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.api.user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListUsers", Handler: _UserService_ListUsers_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "GetUserRoles", Handler: _UserService_GetUserRoles_Handler, }, { MethodName: "InviteUser", Handler: _UserService_InviteUser_Handler, }, { MethodName: "CheckUserTenant", Handler: _UserService_CheckUserTenant_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/api/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 ErrorDuplicateEmail ¶
func ErrorDuplicatePhone ¶
func ErrorDuplicateUsername ¶
func ErrorInvalidEmail ¶
func ErrorInvalidPassword ¶
func ErrorInvalidPhone ¶
func ErrorInvalidUsername ¶
func ErrorUserNotFound ¶
func IsDuplicateEmail ¶
func IsDuplicatePhone ¶
func IsDuplicateUsername ¶
func IsInvalidEmail ¶
func IsInvalidPassword ¶
func IsInvalidPhone ¶
func IsInvalidUsername ¶
func IsUserNotFound ¶
func RegisterUserServiceHTTPServer ¶
func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type CheckUserTenantReply ¶
type CheckUserTenantReply struct { //can user access this tenant Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*CheckUserTenantReply) Descriptor
deprecated
func (*CheckUserTenantReply) Descriptor() ([]byte, []int)
Deprecated: Use CheckUserTenantReply.ProtoReflect.Descriptor instead.
func (*CheckUserTenantReply) GetOk ¶
func (x *CheckUserTenantReply) GetOk() bool
func (*CheckUserTenantReply) ProtoMessage ¶
func (*CheckUserTenantReply) ProtoMessage()
func (*CheckUserTenantReply) ProtoReflect ¶
func (x *CheckUserTenantReply) ProtoReflect() protoreflect.Message
func (*CheckUserTenantReply) Reset ¶
func (x *CheckUserTenantReply) Reset()
func (*CheckUserTenantReply) String ¶
func (x *CheckUserTenantReply) String() string
func (*CheckUserTenantReply) Validate ¶
func (m *CheckUserTenantReply) Validate() error
Validate checks the field values on CheckUserTenantReply 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 (*CheckUserTenantReply) ValidateAll ¶
func (m *CheckUserTenantReply) ValidateAll() error
ValidateAll checks the field values on CheckUserTenantReply 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 CheckUserTenantReplyMultiError, or nil if none found.
type CheckUserTenantReplyMultiError ¶
type CheckUserTenantReplyMultiError []error
CheckUserTenantReplyMultiError is an error wrapping multiple validation errors returned by CheckUserTenantReply.ValidateAll() if the designated constraints aren't met.
func (CheckUserTenantReplyMultiError) AllErrors ¶
func (m CheckUserTenantReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckUserTenantReplyMultiError) Error ¶
func (m CheckUserTenantReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckUserTenantReplyValidationError ¶
type CheckUserTenantReplyValidationError struct {
// contains filtered or unexported fields
}
CheckUserTenantReplyValidationError is the validation error returned by CheckUserTenantReply.Validate if the designated constraints aren't met.
func (CheckUserTenantReplyValidationError) Cause ¶
func (e CheckUserTenantReplyValidationError) Cause() error
Cause function returns cause value.
func (CheckUserTenantReplyValidationError) Error ¶
func (e CheckUserTenantReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CheckUserTenantReplyValidationError) ErrorName ¶
func (e CheckUserTenantReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CheckUserTenantReplyValidationError) Field ¶
func (e CheckUserTenantReplyValidationError) Field() string
Field function returns field value.
func (CheckUserTenantReplyValidationError) Key ¶
func (e CheckUserTenantReplyValidationError) Key() bool
Key function returns key value.
func (CheckUserTenantReplyValidationError) Reason ¶
func (e CheckUserTenantReplyValidationError) Reason() string
Reason function returns reason value.
type CheckUserTenantRequest ¶
type CheckUserTenantRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*CheckUserTenantRequest) Descriptor
deprecated
func (*CheckUserTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckUserTenantRequest.ProtoReflect.Descriptor instead.
func (*CheckUserTenantRequest) GetTenantId ¶
func (x *CheckUserTenantRequest) GetTenantId() string
func (*CheckUserTenantRequest) GetUserId ¶
func (x *CheckUserTenantRequest) GetUserId() string
func (*CheckUserTenantRequest) ProtoMessage ¶
func (*CheckUserTenantRequest) ProtoMessage()
func (*CheckUserTenantRequest) ProtoReflect ¶
func (x *CheckUserTenantRequest) ProtoReflect() protoreflect.Message
func (*CheckUserTenantRequest) Reset ¶
func (x *CheckUserTenantRequest) Reset()
func (*CheckUserTenantRequest) String ¶
func (x *CheckUserTenantRequest) String() string
func (*CheckUserTenantRequest) Validate ¶
func (m *CheckUserTenantRequest) Validate() error
Validate checks the field values on CheckUserTenantRequest 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 (*CheckUserTenantRequest) ValidateAll ¶
func (m *CheckUserTenantRequest) ValidateAll() error
ValidateAll checks the field values on CheckUserTenantRequest 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 CheckUserTenantRequestMultiError, or nil if none found.
type CheckUserTenantRequestMultiError ¶
type CheckUserTenantRequestMultiError []error
CheckUserTenantRequestMultiError is an error wrapping multiple validation errors returned by CheckUserTenantRequest.ValidateAll() if the designated constraints aren't met.
func (CheckUserTenantRequestMultiError) AllErrors ¶
func (m CheckUserTenantRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckUserTenantRequestMultiError) Error ¶
func (m CheckUserTenantRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckUserTenantRequestValidationError ¶
type CheckUserTenantRequestValidationError struct {
// contains filtered or unexported fields
}
CheckUserTenantRequestValidationError is the validation error returned by CheckUserTenantRequest.Validate if the designated constraints aren't met.
func (CheckUserTenantRequestValidationError) Cause ¶
func (e CheckUserTenantRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckUserTenantRequestValidationError) Error ¶
func (e CheckUserTenantRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckUserTenantRequestValidationError) ErrorName ¶
func (e CheckUserTenantRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckUserTenantRequestValidationError) Field ¶
func (e CheckUserTenantRequestValidationError) Field() string
Field function returns field value.
func (CheckUserTenantRequestValidationError) Key ¶
func (e CheckUserTenantRequestValidationError) Key() bool
Key function returns key value.
func (CheckUserTenantRequestValidationError) Reason ¶
func (e CheckUserTenantRequestValidationError) Reason() string
Reason function returns reason value.
type CreateUserRequest ¶
type CreateUserRequest struct { Username *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=username,proto3,oneof" json:"username,omitempty"` Name *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Phone *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=phone,proto3,oneof" json:"phone,omitempty"` Email *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=email,proto3,oneof" json:"email,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` ConfirmPassword string `protobuf:"bytes,6,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` Birthday *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"` // Gender Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=user.api.user.v1.Gender" json:"gender,omitempty"` Avatar string `protobuf:"bytes,9,opt,name=avatar,proto3" json:"avatar,omitempty"` RolesId []string `protobuf:"bytes,10,rep,name=roles_id,json=rolesId,proto3" json:"roles_id,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetAvatar ¶
func (x *CreateUserRequest) GetAvatar() string
func (*CreateUserRequest) GetBirthday ¶
func (x *CreateUserRequest) GetBirthday() *timestamppb.Timestamp
func (*CreateUserRequest) GetConfirmPassword ¶
func (x *CreateUserRequest) GetConfirmPassword() string
func (*CreateUserRequest) GetEmail ¶
func (x *CreateUserRequest) GetEmail() *wrapperspb.StringValue
func (*CreateUserRequest) GetGender ¶
func (x *CreateUserRequest) GetGender() Gender
func (*CreateUserRequest) GetName ¶
func (x *CreateUserRequest) GetName() *wrapperspb.StringValue
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetPhone ¶
func (x *CreateUserRequest) GetPhone() *wrapperspb.StringValue
func (*CreateUserRequest) GetRolesId ¶
func (x *CreateUserRequest) GetRolesId() []string
func (*CreateUserRequest) GetUsername ¶
func (x *CreateUserRequest) GetUsername() *wrapperspb.StringValue
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
func (*CreateUserRequest) StringWithMask ¶
func (x *CreateUserRequest) StringWithMask(mask string) string
func (*CreateUserRequest) Validate ¶
func (m *CreateUserRequest) Validate() error
Validate checks the field values on CreateUserRequest 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 (*CreateUserRequest) ValidateAll ¶
func (m *CreateUserRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserRequest 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 CreateUserRequestMultiError, or nil if none found.
type CreateUserRequestMultiError ¶
type CreateUserRequestMultiError []error
CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserRequestMultiError) AllErrors ¶
func (m CreateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserRequestMultiError) Error ¶
func (m CreateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserRequestValidationError ¶
type CreateUserRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.
func (CreateUserRequestValidationError) Cause ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteUserRequest ¶
type DeleteUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //default false. Just remove user out of tenant. set to true to remove user from system Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetForce ¶
func (x *DeleteUserRequest) GetForce() bool
func (*DeleteUserRequest) GetId ¶
func (x *DeleteUserRequest) GetId() string
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
func (*DeleteUserRequest) Validate ¶
func (m *DeleteUserRequest) Validate() error
Validate checks the field values on DeleteUserRequest 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 (*DeleteUserRequest) ValidateAll ¶
func (m *DeleteUserRequest) ValidateAll() error
ValidateAll checks the field values on DeleteUserRequest 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 DeleteUserRequestMultiError, or nil if none found.
type DeleteUserRequestMultiError ¶
type DeleteUserRequestMultiError []error
DeleteUserRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteUserRequestMultiError) AllErrors ¶
func (m DeleteUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserRequestMultiError) Error ¶
func (m DeleteUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserRequestValidationError ¶
type DeleteUserRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.
func (DeleteUserRequestValidationError) Cause ¶
func (e DeleteUserRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserRequestValidationError) Error ¶
func (e DeleteUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserRequestValidationError) ErrorName ¶
func (e DeleteUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserRequestValidationError) Field ¶
func (e DeleteUserRequestValidationError) Field() string
Field function returns field value.
func (DeleteUserRequestValidationError) Key ¶
func (e DeleteUserRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUserRequestValidationError) Reason ¶
func (e DeleteUserRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteUserResponse ¶
type DeleteUserResponse struct {
// contains filtered or unexported fields
}
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
func (*DeleteUserResponse) Validate ¶
func (m *DeleteUserResponse) Validate() error
Validate checks the field values on DeleteUserResponse 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 (*DeleteUserResponse) ValidateAll ¶
func (m *DeleteUserResponse) ValidateAll() error
ValidateAll checks the field values on DeleteUserResponse 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 DeleteUserResponseMultiError, or nil if none found.
type DeleteUserResponseMultiError ¶
type DeleteUserResponseMultiError []error
DeleteUserResponseMultiError is an error wrapping multiple validation errors returned by DeleteUserResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteUserResponseMultiError) AllErrors ¶
func (m DeleteUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserResponseMultiError) Error ¶
func (m DeleteUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserResponseValidationError ¶
type DeleteUserResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteUserResponseValidationError is the validation error returned by DeleteUserResponse.Validate if the designated constraints aren't met.
func (DeleteUserResponseValidationError) Cause ¶
func (e DeleteUserResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserResponseValidationError) Error ¶
func (e DeleteUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserResponseValidationError) ErrorName ¶
func (e DeleteUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserResponseValidationError) Field ¶
func (e DeleteUserResponseValidationError) Field() string
Field function returns field value.
func (DeleteUserResponseValidationError) Key ¶
func (e DeleteUserResponseValidationError) Key() bool
Key function returns key value.
func (DeleteUserResponseValidationError) Reason ¶
func (e DeleteUserResponseValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_CONFIRM_PASSWORD_MISMATCH ErrorReason = 0 ErrorReason_PASSWORD_INSUFFICIENT_STRENGTH ErrorReason = 1 ErrorReason_INVALID_PASSWORD ErrorReason = 2 ErrorReason_DUPLICATE_USERNAME ErrorReason = 3 ErrorReason_DUPLICATE_EMAIL ErrorReason = 4 ErrorReason_DUPLICATE_PHONE ErrorReason = 5 ErrorReason_INVALID_EMAIL ErrorReason = 6 ErrorReason_INVALID_PHONE ErrorReason = 7 ErrorReason_INVALID_USERNAME ErrorReason = 8 ErrorReason_USER_NOT_FOUND ErrorReason = 9 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type Gender ¶
type Gender int32
func (Gender) Descriptor ¶
func (Gender) Descriptor() protoreflect.EnumDescriptor
func (Gender) EnumDescriptor
deprecated
func (Gender) Number ¶
func (x Gender) Number() protoreflect.EnumNumber
func (Gender) Type ¶
func (Gender) Type() protoreflect.EnumType
type GetUserRequest ¶
type GetUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() 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
func (*GetUserRequest) Validate ¶
func (m *GetUserRequest) Validate() error
Validate checks the field values on GetUserRequest 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 (*GetUserRequest) ValidateAll ¶
func (m *GetUserRequest) ValidateAll() error
ValidateAll checks the field values on GetUserRequest 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 GetUserRequestMultiError, or nil if none found.
type GetUserRequestMultiError ¶
type GetUserRequestMultiError []error
GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserRequestMultiError) AllErrors ¶
func (m GetUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserRequestMultiError) Error ¶
func (m GetUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserRequestValidationError ¶
type GetUserRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.
func (GetUserRequestValidationError) Cause ¶
func (e GetUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRequestValidationError) Error ¶
func (e GetUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRequestValidationError) ErrorName ¶
func (e GetUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRequestValidationError) Field ¶
func (e GetUserRequestValidationError) Field() string
Field function returns field value.
func (GetUserRequestValidationError) Key ¶
func (e GetUserRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRequestValidationError) Reason ¶
func (e GetUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserRoleReply ¶
type GetUserRoleReply struct { Roles []*UserRole `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*GetUserRoleReply) Descriptor
deprecated
func (*GetUserRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRoleReply.ProtoReflect.Descriptor instead.
func (*GetUserRoleReply) GetRoles ¶
func (x *GetUserRoleReply) GetRoles() []*UserRole
func (*GetUserRoleReply) ProtoMessage ¶
func (*GetUserRoleReply) ProtoMessage()
func (*GetUserRoleReply) ProtoReflect ¶
func (x *GetUserRoleReply) ProtoReflect() protoreflect.Message
func (*GetUserRoleReply) Reset ¶
func (x *GetUserRoleReply) Reset()
func (*GetUserRoleReply) String ¶
func (x *GetUserRoleReply) String() string
func (*GetUserRoleReply) Validate ¶
func (m *GetUserRoleReply) Validate() error
Validate checks the field values on GetUserRoleReply 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 (*GetUserRoleReply) ValidateAll ¶
func (m *GetUserRoleReply) ValidateAll() error
ValidateAll checks the field values on GetUserRoleReply 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 GetUserRoleReplyMultiError, or nil if none found.
type GetUserRoleReplyMultiError ¶
type GetUserRoleReplyMultiError []error
GetUserRoleReplyMultiError is an error wrapping multiple validation errors returned by GetUserRoleReply.ValidateAll() if the designated constraints aren't met.
func (GetUserRoleReplyMultiError) AllErrors ¶
func (m GetUserRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserRoleReplyMultiError) Error ¶
func (m GetUserRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserRoleReplyValidationError ¶
type GetUserRoleReplyValidationError struct {
// contains filtered or unexported fields
}
GetUserRoleReplyValidationError is the validation error returned by GetUserRoleReply.Validate if the designated constraints aren't met.
func (GetUserRoleReplyValidationError) Cause ¶
func (e GetUserRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (GetUserRoleReplyValidationError) Error ¶
func (e GetUserRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRoleReplyValidationError) ErrorName ¶
func (e GetUserRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRoleReplyValidationError) Field ¶
func (e GetUserRoleReplyValidationError) Field() string
Field function returns field value.
func (GetUserRoleReplyValidationError) Key ¶
func (e GetUserRoleReplyValidationError) Key() bool
Key function returns key value.
func (GetUserRoleReplyValidationError) Reason ¶
func (e GetUserRoleReplyValidationError) Reason() string
Reason function returns reason value.
type GetUserRoleRequest ¶
type GetUserRoleRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRoleRequest) Descriptor
deprecated
func (*GetUserRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRoleRequest.ProtoReflect.Descriptor instead.
func (*GetUserRoleRequest) GetId ¶
func (x *GetUserRoleRequest) GetId() string
func (*GetUserRoleRequest) ProtoMessage ¶
func (*GetUserRoleRequest) ProtoMessage()
func (*GetUserRoleRequest) ProtoReflect ¶
func (x *GetUserRoleRequest) ProtoReflect() protoreflect.Message
func (*GetUserRoleRequest) Reset ¶
func (x *GetUserRoleRequest) Reset()
func (*GetUserRoleRequest) String ¶
func (x *GetUserRoleRequest) String() string
func (*GetUserRoleRequest) Validate ¶
func (m *GetUserRoleRequest) Validate() error
Validate checks the field values on GetUserRoleRequest 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 (*GetUserRoleRequest) ValidateAll ¶
func (m *GetUserRoleRequest) ValidateAll() error
ValidateAll checks the field values on GetUserRoleRequest 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 GetUserRoleRequestMultiError, or nil if none found.
type GetUserRoleRequestMultiError ¶
type GetUserRoleRequestMultiError []error
GetUserRoleRequestMultiError is an error wrapping multiple validation errors returned by GetUserRoleRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserRoleRequestMultiError) AllErrors ¶
func (m GetUserRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserRoleRequestMultiError) Error ¶
func (m GetUserRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserRoleRequestValidationError ¶
type GetUserRoleRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserRoleRequestValidationError is the validation error returned by GetUserRoleRequest.Validate if the designated constraints aren't met.
func (GetUserRoleRequestValidationError) Cause ¶
func (e GetUserRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRoleRequestValidationError) Error ¶
func (e GetUserRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRoleRequestValidationError) ErrorName ¶
func (e GetUserRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRoleRequestValidationError) Field ¶
func (e GetUserRoleRequestValidationError) Field() string
Field function returns field value.
func (GetUserRoleRequestValidationError) Key ¶
func (e GetUserRoleRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRoleRequestValidationError) Reason ¶
func (e GetUserRoleRequestValidationError) Reason() string
Reason function returns reason value.
type InviteUserReply ¶
type InviteUserReply struct { RequiredConfirm bool `protobuf:"varint,1,opt,name=required_confirm,json=requiredConfirm,proto3" json:"required_confirm,omitempty"` // contains filtered or unexported fields }
func (*InviteUserReply) Descriptor
deprecated
func (*InviteUserReply) Descriptor() ([]byte, []int)
Deprecated: Use InviteUserReply.ProtoReflect.Descriptor instead.
func (*InviteUserReply) GetRequiredConfirm ¶
func (x *InviteUserReply) GetRequiredConfirm() bool
func (*InviteUserReply) ProtoMessage ¶
func (*InviteUserReply) ProtoMessage()
func (*InviteUserReply) ProtoReflect ¶
func (x *InviteUserReply) ProtoReflect() protoreflect.Message
func (*InviteUserReply) Reset ¶
func (x *InviteUserReply) Reset()
func (*InviteUserReply) String ¶
func (x *InviteUserReply) String() string
func (*InviteUserReply) Validate ¶
func (m *InviteUserReply) Validate() error
Validate checks the field values on InviteUserReply 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 (*InviteUserReply) ValidateAll ¶
func (m *InviteUserReply) ValidateAll() error
ValidateAll checks the field values on InviteUserReply 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 InviteUserReplyMultiError, or nil if none found.
type InviteUserReplyMultiError ¶
type InviteUserReplyMultiError []error
InviteUserReplyMultiError is an error wrapping multiple validation errors returned by InviteUserReply.ValidateAll() if the designated constraints aren't met.
func (InviteUserReplyMultiError) AllErrors ¶
func (m InviteUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InviteUserReplyMultiError) Error ¶
func (m InviteUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InviteUserReplyValidationError ¶
type InviteUserReplyValidationError struct {
// contains filtered or unexported fields
}
InviteUserReplyValidationError is the validation error returned by InviteUserReply.Validate if the designated constraints aren't met.
func (InviteUserReplyValidationError) Cause ¶
func (e InviteUserReplyValidationError) Cause() error
Cause function returns cause value.
func (InviteUserReplyValidationError) Error ¶
func (e InviteUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (InviteUserReplyValidationError) ErrorName ¶
func (e InviteUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (InviteUserReplyValidationError) Field ¶
func (e InviteUserReplyValidationError) Field() string
Field function returns field value.
func (InviteUserReplyValidationError) Key ¶
func (e InviteUserReplyValidationError) Key() bool
Key function returns key value.
func (InviteUserReplyValidationError) Reason ¶
func (e InviteUserReplyValidationError) Reason() string
Reason function returns reason value.
type InviteUserRequest ¶
type InviteUserRequest struct { //username email or phone Identify string `protobuf:"bytes,1,opt,name=identify,proto3" json:"identify,omitempty"` // contains filtered or unexported fields }
func (*InviteUserRequest) Descriptor
deprecated
func (*InviteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use InviteUserRequest.ProtoReflect.Descriptor instead.
func (*InviteUserRequest) GetIdentify ¶
func (x *InviteUserRequest) GetIdentify() string
func (*InviteUserRequest) ProtoMessage ¶
func (*InviteUserRequest) ProtoMessage()
func (*InviteUserRequest) ProtoReflect ¶
func (x *InviteUserRequest) ProtoReflect() protoreflect.Message
func (*InviteUserRequest) Reset ¶
func (x *InviteUserRequest) Reset()
func (*InviteUserRequest) String ¶
func (x *InviteUserRequest) String() string
func (*InviteUserRequest) Validate ¶
func (m *InviteUserRequest) Validate() error
Validate checks the field values on InviteUserRequest 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 (*InviteUserRequest) ValidateAll ¶
func (m *InviteUserRequest) ValidateAll() error
ValidateAll checks the field values on InviteUserRequest 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 InviteUserRequestMultiError, or nil if none found.
type InviteUserRequestMultiError ¶
type InviteUserRequestMultiError []error
InviteUserRequestMultiError is an error wrapping multiple validation errors returned by InviteUserRequest.ValidateAll() if the designated constraints aren't met.
func (InviteUserRequestMultiError) AllErrors ¶
func (m InviteUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InviteUserRequestMultiError) Error ¶
func (m InviteUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InviteUserRequestValidationError ¶
type InviteUserRequestValidationError struct {
// contains filtered or unexported fields
}
InviteUserRequestValidationError is the validation error returned by InviteUserRequest.Validate if the designated constraints aren't met.
func (InviteUserRequestValidationError) Cause ¶
func (e InviteUserRequestValidationError) Cause() error
Cause function returns cause value.
func (InviteUserRequestValidationError) Error ¶
func (e InviteUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (InviteUserRequestValidationError) ErrorName ¶
func (e InviteUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (InviteUserRequestValidationError) Field ¶
func (e InviteUserRequestValidationError) Field() string
Field function returns field value.
func (InviteUserRequestValidationError) Key ¶
func (e InviteUserRequestValidationError) Key() bool
Key function returns key value.
func (InviteUserRequestValidationError) Reason ¶
func (e InviteUserRequestValidationError) Reason() string
Reason function returns reason value.
type ListUsersRequest ¶
type ListUsersRequest struct { PageOffset int32 `protobuf:"varint,1,opt,name=page_offset,json=pageOffset,proto3" json:"page_offset,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` Sort []string `protobuf:"bytes,4,rep,name=sort,proto3" json:"sort,omitempty"` Fields *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=fields,proto3" json:"fields,omitempty"` Filter *UserFilter `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*ListUsersRequest) Descriptor
deprecated
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) GetFields ¶
func (x *ListUsersRequest) GetFields() *fieldmaskpb.FieldMask
func (*ListUsersRequest) GetFilter ¶
func (x *ListUsersRequest) GetFilter() *UserFilter
func (*ListUsersRequest) GetPageOffset ¶
func (x *ListUsersRequest) GetPageOffset() int32
func (*ListUsersRequest) GetPageSize ¶
func (x *ListUsersRequest) GetPageSize() int32
func (*ListUsersRequest) GetSearch ¶
func (x *ListUsersRequest) GetSearch() string
func (*ListUsersRequest) GetSort ¶
func (x *ListUsersRequest) GetSort() []string
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect ¶
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset ¶
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (x *ListUsersRequest) String() string
func (*ListUsersRequest) Validate ¶
func (m *ListUsersRequest) Validate() error
Validate checks the field values on ListUsersRequest 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 (*ListUsersRequest) ValidateAll ¶
func (m *ListUsersRequest) ValidateAll() error
ValidateAll checks the field values on ListUsersRequest 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 ListUsersRequestMultiError, or nil if none found.
type ListUsersRequestMultiError ¶
type ListUsersRequestMultiError []error
ListUsersRequestMultiError is an error wrapping multiple validation errors returned by ListUsersRequest.ValidateAll() if the designated constraints aren't met.
func (ListUsersRequestMultiError) AllErrors ¶
func (m ListUsersRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUsersRequestMultiError) Error ¶
func (m ListUsersRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUsersRequestValidationError ¶
type ListUsersRequestValidationError struct {
// contains filtered or unexported fields
}
ListUsersRequestValidationError is the validation error returned by ListUsersRequest.Validate if the designated constraints aren't met.
func (ListUsersRequestValidationError) Cause ¶
func (e ListUsersRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUsersRequestValidationError) Error ¶
func (e ListUsersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUsersRequestValidationError) ErrorName ¶
func (e ListUsersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUsersRequestValidationError) Field ¶
func (e ListUsersRequestValidationError) Field() string
Field function returns field value.
func (ListUsersRequestValidationError) Key ¶
func (e ListUsersRequestValidationError) Key() bool
Key function returns key value.
func (ListUsersRequestValidationError) Reason ¶
func (e ListUsersRequestValidationError) Reason() string
Reason function returns reason value.
type ListUsersResponse ¶
type ListUsersResponse struct { TotalSize int32 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` FilterSize int32 `protobuf:"varint,2,opt,name=filter_size,json=filterSize,proto3" json:"filter_size,omitempty"` Items []*User `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListUsersResponse) Descriptor
deprecated
func (*ListUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.
func (*ListUsersResponse) GetFilterSize ¶
func (x *ListUsersResponse) GetFilterSize() int32
func (*ListUsersResponse) GetItems ¶
func (x *ListUsersResponse) GetItems() []*User
func (*ListUsersResponse) GetTotalSize ¶
func (x *ListUsersResponse) GetTotalSize() int32
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect ¶
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset ¶
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (x *ListUsersResponse) String() string
func (*ListUsersResponse) Validate ¶
func (m *ListUsersResponse) Validate() error
Validate checks the field values on ListUsersResponse 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 (*ListUsersResponse) ValidateAll ¶
func (m *ListUsersResponse) ValidateAll() error
ValidateAll checks the field values on ListUsersResponse 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 ListUsersResponseMultiError, or nil if none found.
type ListUsersResponseMultiError ¶
type ListUsersResponseMultiError []error
ListUsersResponseMultiError is an error wrapping multiple validation errors returned by ListUsersResponse.ValidateAll() if the designated constraints aren't met.
func (ListUsersResponseMultiError) AllErrors ¶
func (m ListUsersResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUsersResponseMultiError) Error ¶
func (m ListUsersResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUsersResponseValidationError ¶
type ListUsersResponseValidationError struct {
// contains filtered or unexported fields
}
ListUsersResponseValidationError is the validation error returned by ListUsersResponse.Validate if the designated constraints aren't met.
func (ListUsersResponseValidationError) Cause ¶
func (e ListUsersResponseValidationError) Cause() error
Cause function returns cause value.
func (ListUsersResponseValidationError) Error ¶
func (e ListUsersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListUsersResponseValidationError) ErrorName ¶
func (e ListUsersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListUsersResponseValidationError) Field ¶
func (e ListUsersResponseValidationError) Field() string
Field function returns field value.
func (ListUsersResponseValidationError) Key ¶
func (e ListUsersResponseValidationError) Key() bool
Key function returns key value.
func (ListUsersResponseValidationError) Reason ¶
func (e ListUsersResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CheckUserTenant ¶
func (UnimplementedUserServiceServer) CheckUserTenant(context.Context, *CheckUserTenantRequest) (*CheckUserTenantReply, error)
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
func (UnimplementedUserServiceServer) GetUserRoles ¶
func (UnimplementedUserServiceServer) GetUserRoles(context.Context, *GetUserRoleRequest) (*GetUserRoleReply, error)
func (UnimplementedUserServiceServer) InviteUser ¶
func (UnimplementedUserServiceServer) InviteUser(context.Context, *InviteUserRequest) (*InviteUserReply, error)
func (UnimplementedUserServiceServer) ListUsers ¶
func (UnimplementedUserServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, 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 UpdateUser ¶
type UpdateUser struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"` Name *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` Phone *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"` Email *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=email,proto3,oneof" json:"email,omitempty"` Birthday *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"` // Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=user.api.user.v1.Gender" json:"gender,omitempty"` //reset password Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"` ConfirmPassword string `protobuf:"bytes,9,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` Avatar string `protobuf:"bytes,10,opt,name=avatar,proto3" json:"avatar,omitempty"` RolesId []string `protobuf:"bytes,11,rep,name=roles_id,json=rolesId,proto3" json:"roles_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateUser) Descriptor
deprecated
func (*UpdateUser) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUser.ProtoReflect.Descriptor instead.
func (*UpdateUser) GetAvatar ¶
func (x *UpdateUser) GetAvatar() string
func (*UpdateUser) GetBirthday ¶
func (x *UpdateUser) GetBirthday() *timestamppb.Timestamp
func (*UpdateUser) GetConfirmPassword ¶
func (x *UpdateUser) GetConfirmPassword() string
func (*UpdateUser) GetEmail ¶
func (x *UpdateUser) GetEmail() *wrapperspb.StringValue
func (*UpdateUser) GetGender ¶
func (x *UpdateUser) GetGender() Gender
func (*UpdateUser) GetId ¶
func (x *UpdateUser) GetId() string
func (*UpdateUser) GetName ¶
func (x *UpdateUser) GetName() *wrapperspb.StringValue
func (*UpdateUser) GetPassword ¶
func (x *UpdateUser) GetPassword() string
func (*UpdateUser) GetPhone ¶
func (x *UpdateUser) GetPhone() *wrapperspb.StringValue
func (*UpdateUser) GetRolesId ¶
func (x *UpdateUser) GetRolesId() []string
func (*UpdateUser) GetUsername ¶
func (x *UpdateUser) GetUsername() *wrapperspb.StringValue
func (*UpdateUser) ProtoMessage ¶
func (*UpdateUser) ProtoMessage()
func (*UpdateUser) ProtoReflect ¶
func (x *UpdateUser) ProtoReflect() protoreflect.Message
func (*UpdateUser) Reset ¶
func (x *UpdateUser) Reset()
func (*UpdateUser) String ¶
func (x *UpdateUser) String() string
func (*UpdateUser) Validate ¶
func (m *UpdateUser) Validate() error
Validate checks the field values on UpdateUser 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 (*UpdateUser) ValidateAll ¶
func (m *UpdateUser) ValidateAll() error
ValidateAll checks the field values on UpdateUser 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 UpdateUserMultiError, or nil if none found.
type UpdateUserMultiError ¶
type UpdateUserMultiError []error
UpdateUserMultiError is an error wrapping multiple validation errors returned by UpdateUser.ValidateAll() if the designated constraints aren't met.
func (UpdateUserMultiError) AllErrors ¶
func (m UpdateUserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserMultiError) Error ¶
func (m UpdateUserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserRequest ¶
type UpdateUserRequest struct { User *UpdateUser `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetUpdateMask ¶
func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateUserRequest) GetUser ¶
func (x *UpdateUserRequest) GetUser() *UpdateUser
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
func (*UpdateUserRequest) StringWithMask ¶
func (x *UpdateUserRequest) StringWithMask(mask string) string
func (*UpdateUserRequest) Validate ¶
func (m *UpdateUserRequest) Validate() error
Validate checks the field values on UpdateUserRequest 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 (*UpdateUserRequest) ValidateAll ¶
func (m *UpdateUserRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserRequest 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 UpdateUserRequestMultiError, or nil if none found.
type UpdateUserRequestMultiError ¶
type UpdateUserRequestMultiError []error
UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserRequestMultiError) AllErrors ¶
func (m UpdateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserRequestMultiError) Error ¶
func (m UpdateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserRequestValidationError ¶
type UpdateUserRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.
func (UpdateUserRequestValidationError) Cause ¶
func (e UpdateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserRequestValidationError) Error ¶
func (e UpdateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserRequestValidationError) ErrorName ¶
func (e UpdateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserRequestValidationError) Field ¶
func (e UpdateUserRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserRequestValidationError) Key ¶
func (e UpdateUserRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserRequestValidationError) Reason ¶
func (e UpdateUserRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserValidationError ¶
type UpdateUserValidationError struct {
// contains filtered or unexported fields
}
UpdateUserValidationError is the validation error returned by UpdateUser.Validate if the designated constraints aren't met.
func (UpdateUserValidationError) Cause ¶
func (e UpdateUserValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserValidationError) Error ¶
func (e UpdateUserValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserValidationError) ErrorName ¶
func (e UpdateUserValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserValidationError) Field ¶
func (e UpdateUserValidationError) Field() string
Field function returns field value.
func (UpdateUserValidationError) Key ¶
func (e UpdateUserValidationError) Key() bool
Key function returns key value.
func (UpdateUserValidationError) Reason ¶
func (e UpdateUserValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"` Name *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` Phone *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"` Email *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=email,proto3,oneof" json:"email,omitempty"` Birthday *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"` // Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=user.api.user.v1.Gender" json:"gender,omitempty"` Roles []*v1.Role `protobuf:"bytes,8,rep,name=roles,proto3" json:"roles,omitempty"` Avatar *blob.BlobFile `protobuf:"bytes,10,opt,name=avatar,proto3" json:"avatar,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetBirthday ¶
func (x *User) GetBirthday() *timestamppb.Timestamp
func (*User) GetEmail ¶
func (x *User) GetEmail() *wrapperspb.StringValue
func (*User) GetName ¶
func (x *User) GetName() *wrapperspb.StringValue
func (*User) GetPhone ¶
func (x *User) GetPhone() *wrapperspb.StringValue
func (*User) GetUsername ¶
func (x *User) GetUsername() *wrapperspb.StringValue
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
Validate checks the field values on 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 (*User) ValidateAll ¶
ValidateAll checks the field values on 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 UserMultiError, or nil if none found.
type UserFilter ¶
type UserFilter struct { Id *query.StringFilterOperation `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Gender *query.StringFilterOperation `protobuf:"bytes,2,opt,name=gender,proto3" json:"gender,omitempty"` Birthday *query.DateFilterOperators `protobuf:"bytes,3,opt,name=birthday,proto3" json:"birthday,omitempty"` Roles *v1.RoleFilter `protobuf:"bytes,5,opt,name=roles,proto3" json:"roles,omitempty"` And []*UserFilter `protobuf:"bytes,7,rep,name=and,proto3" json:"and,omitempty"` Or []*UserFilter `protobuf:"bytes,8,rep,name=or,proto3" json:"or,omitempty"` // contains filtered or unexported fields }
func (*UserFilter) Descriptor
deprecated
func (*UserFilter) Descriptor() ([]byte, []int)
Deprecated: Use UserFilter.ProtoReflect.Descriptor instead.
func (*UserFilter) GetAnd ¶
func (x *UserFilter) GetAnd() []*UserFilter
func (*UserFilter) GetBirthday ¶
func (x *UserFilter) GetBirthday() *query.DateFilterOperators
func (*UserFilter) GetGender ¶
func (x *UserFilter) GetGender() *query.StringFilterOperation
func (*UserFilter) GetId ¶
func (x *UserFilter) GetId() *query.StringFilterOperation
func (*UserFilter) GetOr ¶
func (x *UserFilter) GetOr() []*UserFilter
func (*UserFilter) GetRoles ¶
func (x *UserFilter) GetRoles() *v1.RoleFilter
func (*UserFilter) ProtoMessage ¶
func (*UserFilter) ProtoMessage()
func (*UserFilter) ProtoReflect ¶
func (x *UserFilter) ProtoReflect() protoreflect.Message
func (*UserFilter) Reset ¶
func (x *UserFilter) Reset()
func (*UserFilter) String ¶
func (x *UserFilter) String() string
func (*UserFilter) Validate ¶
func (m *UserFilter) Validate() error
Validate checks the field values on UserFilter 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 (*UserFilter) ValidateAll ¶
func (m *UserFilter) ValidateAll() error
ValidateAll checks the field values on UserFilter 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 UserFilterMultiError, or nil if none found.
type UserFilterMultiError ¶
type UserFilterMultiError []error
UserFilterMultiError is an error wrapping multiple validation errors returned by UserFilter.ValidateAll() if the designated constraints aren't met.
func (UserFilterMultiError) AllErrors ¶
func (m UserFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserFilterMultiError) Error ¶
func (m UserFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserFilterValidationError ¶
type UserFilterValidationError struct {
// contains filtered or unexported fields
}
UserFilterValidationError is the validation error returned by UserFilter.Validate if the designated constraints aren't met.
func (UserFilterValidationError) Cause ¶
func (e UserFilterValidationError) Cause() error
Cause function returns cause value.
func (UserFilterValidationError) Error ¶
func (e UserFilterValidationError) Error() string
Error satisfies the builtin error interface
func (UserFilterValidationError) ErrorName ¶
func (e UserFilterValidationError) ErrorName() string
ErrorName returns error name.
func (UserFilterValidationError) Field ¶
func (e UserFilterValidationError) Field() string
Field function returns field value.
func (UserFilterValidationError) Key ¶
func (e UserFilterValidationError) Key() bool
Key function returns key value.
func (UserFilterValidationError) Reason ¶
func (e UserFilterValidationError) Reason() string
Reason function returns reason value.
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRole ¶
type UserRole struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UserRole) Descriptor
deprecated
func (*UserRole) ProtoMessage ¶
func (*UserRole) ProtoMessage()
func (*UserRole) ProtoReflect ¶
func (x *UserRole) ProtoReflect() protoreflect.Message
func (*UserRole) Validate ¶
Validate checks the field values on UserRole 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 (*UserRole) ValidateAll ¶
ValidateAll checks the field values on UserRole 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 UserRoleMultiError, or nil if none found.
type UserRoleMultiError ¶
type UserRoleMultiError []error
UserRoleMultiError is an error wrapping multiple validation errors returned by UserRole.ValidateAll() if the designated constraints aren't met.
func (UserRoleMultiError) AllErrors ¶
func (m UserRoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserRoleMultiError) Error ¶
func (m UserRoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRoleValidationError ¶
type UserRoleValidationError struct {
// contains filtered or unexported fields
}
UserRoleValidationError is the validation error returned by UserRole.Validate if the designated constraints aren't met.
func (UserRoleValidationError) Cause ¶
func (e UserRoleValidationError) Cause() error
Cause function returns cause value.
func (UserRoleValidationError) Error ¶
func (e UserRoleValidationError) Error() string
Error satisfies the builtin error interface
func (UserRoleValidationError) ErrorName ¶
func (e UserRoleValidationError) ErrorName() string
ErrorName returns error name.
func (UserRoleValidationError) Field ¶
func (e UserRoleValidationError) Field() string
Field function returns field value.
func (UserRoleValidationError) Key ¶
func (e UserRoleValidationError) Key() bool
Key function returns key value.
func (UserRoleValidationError) Reason ¶
func (e UserRoleValidationError) Reason() string
Reason function returns reason value.
type UserServiceClient ¶
type UserServiceClient interface { //ListUsers // authz: user.user,*,list ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) //GetUser // authz: user.user,id,get GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) // CreateUser // authz: user.user,*,create CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) //UpdateUser // authz: user.user,id,update UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) //DeleteUser // authz: user.user,id,delete DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) //GetUserRoles // authz: user.user,id,get GetUserRoles(ctx context.Context, in *GetUserRoleRequest, opts ...grpc.CallOption) (*GetUserRoleReply, error) //InviteUser //authz: user.user,*,create InviteUser(ctx context.Context, in *InviteUserRequest, opts ...grpc.CallOption) (*InviteUserReply, error) //CheckUserTenant internal api for checking whether user is allowed in this tenant CheckUserTenant(ctx context.Context, in *CheckUserTenantRequest, opts ...grpc.CallOption) (*CheckUserTenantReply, 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 UserServiceHTTPClient ¶
type UserServiceHTTPClient interface { CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *User, err error) DeleteUser(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *DeleteUserResponse, err error) GetUser(ctx context.Context, req *GetUserRequest, opts ...http.CallOption) (rsp *User, err error) GetUserRoles(ctx context.Context, req *GetUserRoleRequest, opts ...http.CallOption) (rsp *GetUserRoleReply, err error) InviteUser(ctx context.Context, req *InviteUserRequest, opts ...http.CallOption) (rsp *InviteUserReply, err error) ListUsers(ctx context.Context, req *ListUsersRequest, opts ...http.CallOption) (rsp *ListUsersResponse, err error) UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *User, err error) }
func NewUserServiceHTTPClient ¶
func NewUserServiceHTTPClient(client *http.Client) UserServiceHTTPClient
type UserServiceHTTPClientImpl ¶
type UserServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceHTTPClientImpl) CreateUser ¶
func (c *UserServiceHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*User, error)
func (*UserServiceHTTPClientImpl) DeleteUser ¶
func (c *UserServiceHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*DeleteUserResponse, error)
func (*UserServiceHTTPClientImpl) GetUser ¶
func (c *UserServiceHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*User, error)
func (*UserServiceHTTPClientImpl) GetUserRoles ¶
func (c *UserServiceHTTPClientImpl) GetUserRoles(ctx context.Context, in *GetUserRoleRequest, opts ...http.CallOption) (*GetUserRoleReply, error)
func (*UserServiceHTTPClientImpl) InviteUser ¶
func (c *UserServiceHTTPClientImpl) InviteUser(ctx context.Context, in *InviteUserRequest, opts ...http.CallOption) (*InviteUserReply, error)
func (*UserServiceHTTPClientImpl) ListUsers ¶
func (c *UserServiceHTTPClientImpl) ListUsers(ctx context.Context, in *ListUsersRequest, opts ...http.CallOption) (*ListUsersResponse, error)
func (*UserServiceHTTPClientImpl) UpdateUser ¶
func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*User, error)
type UserServiceHTTPServer ¶
type UserServiceHTTPServer interface { CreateUser(context.Context, *CreateUserRequest) (*User, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) GetUser(context.Context, *GetUserRequest) (*User, error) GetUserRoles(context.Context, *GetUserRoleRequest) (*GetUserRoleReply, error) InviteUser(context.Context, *InviteUserRequest) (*InviteUserReply, error) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*User, error) }
type UserServiceServer ¶
type UserServiceServer interface { //ListUsers // authz: user.user,*,list ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) //GetUser // authz: user.user,id,get GetUser(context.Context, *GetUserRequest) (*User, error) // CreateUser // authz: user.user,*,create CreateUser(context.Context, *CreateUserRequest) (*User, error) //UpdateUser // authz: user.user,id,update UpdateUser(context.Context, *UpdateUserRequest) (*User, error) //DeleteUser // authz: user.user,id,delete DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) //GetUserRoles // authz: user.user,id,get GetUserRoles(context.Context, *GetUserRoleRequest) (*GetUserRoleReply, error) //InviteUser //authz: user.user,*,create InviteUser(context.Context, *InviteUserRequest) (*InviteUserReply, error) //CheckUserTenant internal api for checking whether user is allowed in this tenant CheckUserTenant(context.Context, *CheckUserTenantRequest) (*CheckUserTenantReply, error) }
UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility
func NewUserServiceClientProxy ¶
func NewUserServiceClientProxy(cc UserServiceClient) UserServiceServer
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.