Documentation
¶
Index ¶
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AuditEvent
- func (*AuditEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AuditEvent) GetId() int64
- func (x *AuditEvent) GetMessage() string
- func (x *AuditEvent) GetTimestamp() string
- func (x *AuditEvent) GetUser_ID() int64
- func (*AuditEvent) ProtoMessage()
- func (x *AuditEvent) ProtoReflect() protoreflect.Message
- func (x *AuditEvent) Reset()
- func (x *AuditEvent) String() string
- func (m *AuditEvent) Validate() error
- func (m *AuditEvent) ValidateAll() error
- type AuditEventMultiError
- type AuditEventValidationError
- type AuditEventsListRequest
- func (*AuditEventsListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuditEventsListRequest) GetPage() int64
- func (x *AuditEventsListRequest) GetUserId() int64
- func (*AuditEventsListRequest) ProtoMessage()
- func (x *AuditEventsListRequest) ProtoReflect() protoreflect.Message
- func (x *AuditEventsListRequest) Reset()
- func (x *AuditEventsListRequest) String() string
- func (m *AuditEventsListRequest) Validate() error
- func (m *AuditEventsListRequest) ValidateAll() error
- type AuditEventsListRequestMultiError
- type AuditEventsListRequestValidationError
- func (e AuditEventsListRequestValidationError) Cause() error
- func (e AuditEventsListRequestValidationError) Error() string
- func (e AuditEventsListRequestValidationError) ErrorName() string
- func (e AuditEventsListRequestValidationError) Field() string
- func (e AuditEventsListRequestValidationError) Key() bool
- func (e AuditEventsListRequestValidationError) Reason() string
- type AuditListResponse
- func (*AuditListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuditListResponse) GetEvents() []*AuditEvent
- func (x *AuditListResponse) GetNumEvents() int64
- func (*AuditListResponse) ProtoMessage()
- func (x *AuditListResponse) ProtoReflect() protoreflect.Message
- func (x *AuditListResponse) Reset()
- func (x *AuditListResponse) String() string
- func (m *AuditListResponse) Validate() error
- func (m *AuditListResponse) ValidateAll() error
- type AuditListResponseMultiError
- type AuditListResponseValidationError
- func (e AuditListResponseValidationError) Cause() error
- func (e AuditListResponseValidationError) Error() string
- func (e AuditListResponseValidationError) ErrorName() string
- func (e AuditListResponseValidationError) Field() string
- func (e AuditListResponseValidationError) Key() bool
- func (e AuditListResponseValidationError) Reason() string
- type BanUserRequest
- func (*BanUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BanUserRequest) GetUserID() int64
- func (*BanUserRequest) ProtoMessage()
- func (x *BanUserRequest) ProtoReflect() protoreflect.Message
- func (x *BanUserRequest) Reset()
- func (x *BanUserRequest) String() string
- func (m *BanUserRequest) Validate() error
- func (m *BanUserRequest) ValidateAll() error
- type BanUserRequestMultiError
- type BanUserRequestValidationError
- func (e BanUserRequestValidationError) Cause() error
- func (e BanUserRequestValidationError) Error() string
- func (e BanUserRequestValidationError) ErrorName() string
- func (e BanUserRequestValidationError) Field() string
- func (e BanUserRequestValidationError) Key() bool
- func (e BanUserRequestValidationError) Reason() string
- type BanUserResponse
- func (*BanUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*BanUserResponse) ProtoMessage()
- func (x *BanUserResponse) ProtoReflect() protoreflect.Message
- func (x *BanUserResponse) Reset()
- func (x *BanUserResponse) String() string
- func (m *BanUserResponse) Validate() error
- func (m *BanUserResponse) ValidateAll() error
- type BanUserResponseMultiError
- type BanUserResponseValidationError
- func (e BanUserResponseValidationError) Cause() error
- func (e BanUserResponseValidationError) Error() string
- func (e BanUserResponseValidationError) ErrorName() string
- func (e BanUserResponseValidationError) Field() string
- func (e BanUserResponseValidationError) Key() bool
- func (e BanUserResponseValidationError) Reason() string
- type GetForeignUserRequest
- func (*GetForeignUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetForeignUserRequest) GetForeignUserID() string
- func (x *GetForeignUserRequest) GetOriginalWebsite() string
- func (*GetForeignUserRequest) ProtoMessage()
- func (x *GetForeignUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetForeignUserRequest) Reset()
- func (x *GetForeignUserRequest) String() string
- func (m *GetForeignUserRequest) Validate() error
- func (m *GetForeignUserRequest) ValidateAll() error
- type GetForeignUserRequestMultiError
- type GetForeignUserRequestValidationError
- func (e GetForeignUserRequestValidationError) Cause() error
- func (e GetForeignUserRequestValidationError) Error() string
- func (e GetForeignUserRequestValidationError) ErrorName() string
- func (e GetForeignUserRequestValidationError) Field() string
- func (e GetForeignUserRequestValidationError) Key() bool
- func (e GetForeignUserRequestValidationError) Reason() string
- type GetForeignUserResponse
- func (*GetForeignUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetForeignUserResponse) GetNewUID() int64
- func (*GetForeignUserResponse) ProtoMessage()
- func (x *GetForeignUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetForeignUserResponse) Reset()
- func (x *GetForeignUserResponse) String() string
- func (m *GetForeignUserResponse) Validate() error
- func (m *GetForeignUserResponse) ValidateAll() error
- type GetForeignUserResponseMultiError
- type GetForeignUserResponseValidationError
- func (e GetForeignUserResponseValidationError) Cause() error
- func (e GetForeignUserResponseValidationError) Error() string
- func (e GetForeignUserResponseValidationError) ErrorName() string
- func (e GetForeignUserResponseValidationError) Field() string
- func (e GetForeignUserResponseValidationError) Key() bool
- func (e GetForeignUserResponseValidationError) Reason() string
- type GetUserFromIDRequest
- func (*GetUserFromIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFromIDRequest) GetUserID() int64
- func (*GetUserFromIDRequest) ProtoMessage()
- func (x *GetUserFromIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserFromIDRequest) Reset()
- func (x *GetUserFromIDRequest) String() string
- func (m *GetUserFromIDRequest) Validate() error
- func (m *GetUserFromIDRequest) ValidateAll() error
- type GetUserFromIDRequestMultiError
- type GetUserFromIDRequestValidationError
- func (e GetUserFromIDRequestValidationError) Cause() error
- func (e GetUserFromIDRequestValidationError) Error() string
- func (e GetUserFromIDRequestValidationError) ErrorName() string
- func (e GetUserFromIDRequestValidationError) Field() string
- func (e GetUserFromIDRequestValidationError) Key() bool
- func (e GetUserFromIDRequestValidationError) Reason() string
- type GetUserIDsForUsernameRequest
- func (*GetUserIDsForUsernameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserIDsForUsernameRequest) GetUsername() string
- func (*GetUserIDsForUsernameRequest) ProtoMessage()
- func (x *GetUserIDsForUsernameRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserIDsForUsernameRequest) Reset()
- func (x *GetUserIDsForUsernameRequest) String() string
- func (m *GetUserIDsForUsernameRequest) Validate() error
- func (m *GetUserIDsForUsernameRequest) ValidateAll() error
- type GetUserIDsForUsernameRequestMultiError
- type GetUserIDsForUsernameRequestValidationError
- func (e GetUserIDsForUsernameRequestValidationError) Cause() error
- func (e GetUserIDsForUsernameRequestValidationError) Error() string
- func (e GetUserIDsForUsernameRequestValidationError) ErrorName() string
- func (e GetUserIDsForUsernameRequestValidationError) Field() string
- func (e GetUserIDsForUsernameRequestValidationError) Key() bool
- func (e GetUserIDsForUsernameRequestValidationError) Reason() string
- type GetUserIDsForUsernameResponse
- func (*GetUserIDsForUsernameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserIDsForUsernameResponse) GetUserIDs() []int64
- func (*GetUserIDsForUsernameResponse) ProtoMessage()
- func (x *GetUserIDsForUsernameResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserIDsForUsernameResponse) Reset()
- func (x *GetUserIDsForUsernameResponse) String() string
- func (m *GetUserIDsForUsernameResponse) Validate() error
- func (m *GetUserIDsForUsernameResponse) ValidateAll() error
- type GetUserIDsForUsernameResponseMultiError
- type GetUserIDsForUsernameResponseValidationError
- func (e GetUserIDsForUsernameResponseValidationError) Cause() error
- func (e GetUserIDsForUsernameResponseValidationError) Error() string
- func (e GetUserIDsForUsernameResponseValidationError) ErrorName() string
- func (e GetUserIDsForUsernameResponseValidationError) Field() string
- func (e GetUserIDsForUsernameResponseValidationError) Key() bool
- func (e GetUserIDsForUsernameResponseValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetJwt() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type NewAuditEventRequest
- func (*NewAuditEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewAuditEventRequest) GetMessage() string
- func (x *NewAuditEventRequest) GetUser_ID() int64
- func (*NewAuditEventRequest) ProtoMessage()
- func (x *NewAuditEventRequest) ProtoReflect() protoreflect.Message
- func (x *NewAuditEventRequest) Reset()
- func (x *NewAuditEventRequest) String() string
- func (m *NewAuditEventRequest) Validate() error
- func (m *NewAuditEventRequest) ValidateAll() error
- type NewAuditEventRequestMultiError
- type NewAuditEventRequestValidationError
- func (e NewAuditEventRequestValidationError) Cause() error
- func (e NewAuditEventRequestValidationError) Error() string
- func (e NewAuditEventRequestValidationError) ErrorName() string
- func (e NewAuditEventRequestValidationError) Field() string
- func (e NewAuditEventRequestValidationError) Key() bool
- func (e NewAuditEventRequestValidationError) Reason() string
- type Nothing
- type NothingMultiError
- type NothingValidationError
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetForeignUser() bool
- func (x *RegisterRequest) GetForeignUserID() string
- func (x *RegisterRequest) GetForeignWebsite() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetUsername() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) ValidateAll() error
- type RegisterRequestMultiError
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetJwt() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- func (m *RegisterResponse) Validate() error
- func (m *RegisterResponse) ValidateAll() error
- type RegisterResponseMultiError
- type RegisterResponseValidationError
- func (e RegisterResponseValidationError) Cause() error
- func (e RegisterResponseValidationError) Error() string
- func (e RegisterResponseValidationError) ErrorName() string
- func (e RegisterResponseValidationError) Field() string
- func (e RegisterResponseValidationError) Key() bool
- func (e RegisterResponseValidationError) Reason() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetNewPassword() string
- func (x *ResetPasswordRequest) GetOldPassword() string
- func (x *ResetPasswordRequest) GetUserID() int64
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- func (m *ResetPasswordRequest) Validate() error
- func (m *ResetPasswordRequest) ValidateAll() error
- type ResetPasswordRequestMultiError
- type ResetPasswordRequestValidationError
- func (e ResetPasswordRequestValidationError) Cause() error
- func (e ResetPasswordRequestValidationError) Error() string
- func (e ResetPasswordRequestValidationError) ErrorName() string
- func (e ResetPasswordRequestValidationError) Field() string
- func (e ResetPasswordRequestValidationError) Key() bool
- func (e ResetPasswordRequestValidationError) Reason() string
- type SetRankRequest
- func (*SetRankRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRankRequest) GetRank() UserRank
- func (x *SetRankRequest) GetUserID() int64
- func (*SetRankRequest) ProtoMessage()
- func (x *SetRankRequest) ProtoReflect() protoreflect.Message
- func (x *SetRankRequest) Reset()
- func (x *SetRankRequest) String() string
- func (m *SetRankRequest) Validate() error
- func (m *SetRankRequest) ValidateAll() error
- type SetRankRequestMultiError
- type SetRankRequestValidationError
- func (e SetRankRequestValidationError) Cause() error
- func (e SetRankRequestValidationError) Error() string
- func (e SetRankRequestValidationError) ErrorName() string
- func (e SetRankRequestValidationError) Field() string
- func (e SetRankRequestValidationError) Key() bool
- func (e SetRankRequestValidationError) Reason() string
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) AddAuditEvent(context.Context, *NewAuditEventRequest) (*Nothing, error)
- func (UnimplementedUserServiceServer) BanUser(context.Context, *BanUserRequest) (*BanUserResponse, error)
- func (UnimplementedUserServiceServer) GetAuditEvents(context.Context, *AuditEventsListRequest) (*AuditListResponse, error)
- func (UnimplementedUserServiceServer) GetUserForForeignUID(context.Context, *GetForeignUserRequest) (*GetForeignUserResponse, error)
- func (UnimplementedUserServiceServer) GetUserFromID(context.Context, *GetUserFromIDRequest) (*UserResponse, error)
- func (UnimplementedUserServiceServer) GetUserIDsForUsername(context.Context, *GetUserIDsForUsernameRequest) (*GetUserIDsForUsernameResponse, error)
- func (UnimplementedUserServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedUserServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedUserServiceServer) ResetPassword(context.Context, *ResetPasswordRequest) (*Nothing, error)
- func (UnimplementedUserServiceServer) SetUserRank(context.Context, *SetRankRequest) (*Nothing, error)
- func (UnimplementedUserServiceServer) ValidateJWT(context.Context, *ValidateJWTRequest) (*ValidateJWTResponse, error)
- type UnsafeUserServiceServer
- type UserRank
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserResponse) GetBanned() bool
- func (x *UserResponse) GetEmail() string
- func (x *UserResponse) GetRank() UserRank
- func (x *UserResponse) GetUsername() string
- func (*UserResponse) ProtoMessage()
- func (x *UserResponse) ProtoReflect() protoreflect.Message
- func (x *UserResponse) Reset()
- func (x *UserResponse) String() string
- func (m *UserResponse) Validate() error
- func (m *UserResponse) ValidateAll() error
- type UserResponseMultiError
- type UserResponseValidationError
- func (e UserResponseValidationError) Cause() error
- func (e UserResponseValidationError) Error() string
- func (e UserResponseValidationError) ErrorName() string
- func (e UserResponseValidationError) Field() string
- func (e UserResponseValidationError) Key() bool
- func (e UserResponseValidationError) Reason() string
- type UserServiceClient
- type UserServiceServer
- type ValidateJWTRequest
- func (*ValidateJWTRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateJWTRequest) GetJwt() string
- func (*ValidateJWTRequest) ProtoMessage()
- func (x *ValidateJWTRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateJWTRequest) Reset()
- func (x *ValidateJWTRequest) String() string
- func (m *ValidateJWTRequest) Validate() error
- func (m *ValidateJWTRequest) ValidateAll() error
- type ValidateJWTRequestMultiError
- type ValidateJWTRequestValidationError
- func (e ValidateJWTRequestValidationError) Cause() error
- func (e ValidateJWTRequestValidationError) Error() string
- func (e ValidateJWTRequestValidationError) ErrorName() string
- func (e ValidateJWTRequestValidationError) Field() string
- func (e ValidateJWTRequestValidationError) Key() bool
- func (e ValidateJWTRequestValidationError) Reason() string
- type ValidateJWTResponse
- func (*ValidateJWTResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateJWTResponse) GetIsValid() bool
- func (x *ValidateJWTResponse) GetUid() int64
- func (*ValidateJWTResponse) ProtoMessage()
- func (x *ValidateJWTResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateJWTResponse) Reset()
- func (x *ValidateJWTResponse) String() string
- func (m *ValidateJWTResponse) Validate() error
- func (m *ValidateJWTResponse) ValidateAll() error
- type ValidateJWTResponseMultiError
- type ValidateJWTResponseValidationError
- func (e ValidateJWTResponseValidationError) Cause() error
- func (e ValidateJWTResponseValidationError) Error() string
- func (e ValidateJWTResponseValidationError) ErrorName() string
- func (e ValidateJWTResponseValidationError) Field() string
- func (e ValidateJWTResponseValidationError) Key() bool
- func (e ValidateJWTResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( UserRank_name = map[int32]string{ 0: "regular", 1: "trusted", 2: "admin", } UserRank_value = map[string]int32{ "regular": 0, "trusted": 1, "admin": 2, } )
Enum value maps for UserRank.
var File_userservice_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _UserService_Register_Handler, }, { MethodName: "Login", Handler: _UserService_Login_Handler, }, { MethodName: "ValidateJWT", Handler: _UserService_ValidateJWT_Handler, }, { MethodName: "GetUserFromID", Handler: _UserService_GetUserFromID_Handler, }, { MethodName: "GetUserForForeignUID", Handler: _UserService_GetUserForForeignUID_Handler, }, { MethodName: "GetUserIDsForUsername", Handler: _UserService_GetUserIDsForUsername_Handler, }, { MethodName: "BanUser", Handler: _UserService_BanUser_Handler, }, { MethodName: "SetUserRank", Handler: _UserService_SetUserRank_Handler, }, { MethodName: "ResetPassword", Handler: _UserService_ResetPassword_Handler, }, { MethodName: "AddAuditEvent", Handler: _UserService_AddAuditEvent_Handler, }, { MethodName: "GetAuditEvents", Handler: _UserService_GetAuditEvents_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "userservice.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AuditEvent ¶
type AuditEvent struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` User_ID int64 `protobuf:"varint,2,opt,name=user_ID,json=userID,proto3" json:"user_ID,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*AuditEvent) Descriptor
deprecated
func (*AuditEvent) Descriptor() ([]byte, []int)
Deprecated: Use AuditEvent.ProtoReflect.Descriptor instead.
func (*AuditEvent) GetId ¶
func (x *AuditEvent) GetId() int64
func (*AuditEvent) GetMessage ¶
func (x *AuditEvent) GetMessage() string
func (*AuditEvent) GetTimestamp ¶
func (x *AuditEvent) GetTimestamp() string
func (*AuditEvent) GetUser_ID ¶
func (x *AuditEvent) GetUser_ID() int64
func (*AuditEvent) ProtoMessage ¶
func (*AuditEvent) ProtoMessage()
func (*AuditEvent) ProtoReflect ¶
func (x *AuditEvent) ProtoReflect() protoreflect.Message
func (*AuditEvent) Reset ¶
func (x *AuditEvent) Reset()
func (*AuditEvent) String ¶
func (x *AuditEvent) String() string
func (*AuditEvent) Validate ¶
func (m *AuditEvent) Validate() error
Validate checks the field values on AuditEvent 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 (*AuditEvent) ValidateAll ¶
func (m *AuditEvent) ValidateAll() error
ValidateAll checks the field values on AuditEvent 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 AuditEventMultiError, or nil if none found.
type AuditEventMultiError ¶
type AuditEventMultiError []error
AuditEventMultiError is an error wrapping multiple validation errors returned by AuditEvent.ValidateAll() if the designated constraints aren't met.
func (AuditEventMultiError) AllErrors ¶
func (m AuditEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuditEventMultiError) Error ¶
func (m AuditEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuditEventValidationError ¶
type AuditEventValidationError struct {
// contains filtered or unexported fields
}
AuditEventValidationError is the validation error returned by AuditEvent.Validate if the designated constraints aren't met.
func (AuditEventValidationError) Cause ¶
func (e AuditEventValidationError) Cause() error
Cause function returns cause value.
func (AuditEventValidationError) Error ¶
func (e AuditEventValidationError) Error() string
Error satisfies the builtin error interface
func (AuditEventValidationError) ErrorName ¶
func (e AuditEventValidationError) ErrorName() string
ErrorName returns error name.
func (AuditEventValidationError) Field ¶
func (e AuditEventValidationError) Field() string
Field function returns field value.
func (AuditEventValidationError) Key ¶
func (e AuditEventValidationError) Key() bool
Key function returns key value.
func (AuditEventValidationError) Reason ¶
func (e AuditEventValidationError) Reason() string
Reason function returns reason value.
type AuditEventsListRequest ¶
type AuditEventsListRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // -1 if all users // contains filtered or unexported fields }
func (*AuditEventsListRequest) Descriptor
deprecated
func (*AuditEventsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuditEventsListRequest.ProtoReflect.Descriptor instead.
func (*AuditEventsListRequest) GetPage ¶
func (x *AuditEventsListRequest) GetPage() int64
func (*AuditEventsListRequest) GetUserId ¶
func (x *AuditEventsListRequest) GetUserId() int64
func (*AuditEventsListRequest) ProtoMessage ¶
func (*AuditEventsListRequest) ProtoMessage()
func (*AuditEventsListRequest) ProtoReflect ¶
func (x *AuditEventsListRequest) ProtoReflect() protoreflect.Message
func (*AuditEventsListRequest) Reset ¶
func (x *AuditEventsListRequest) Reset()
func (*AuditEventsListRequest) String ¶
func (x *AuditEventsListRequest) String() string
func (*AuditEventsListRequest) Validate ¶
func (m *AuditEventsListRequest) Validate() error
Validate checks the field values on AuditEventsListRequest 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 (*AuditEventsListRequest) ValidateAll ¶
func (m *AuditEventsListRequest) ValidateAll() error
ValidateAll checks the field values on AuditEventsListRequest 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 AuditEventsListRequestMultiError, or nil if none found.
type AuditEventsListRequestMultiError ¶
type AuditEventsListRequestMultiError []error
AuditEventsListRequestMultiError is an error wrapping multiple validation errors returned by AuditEventsListRequest.ValidateAll() if the designated constraints aren't met.
func (AuditEventsListRequestMultiError) AllErrors ¶
func (m AuditEventsListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuditEventsListRequestMultiError) Error ¶
func (m AuditEventsListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuditEventsListRequestValidationError ¶
type AuditEventsListRequestValidationError struct {
// contains filtered or unexported fields
}
AuditEventsListRequestValidationError is the validation error returned by AuditEventsListRequest.Validate if the designated constraints aren't met.
func (AuditEventsListRequestValidationError) Cause ¶
func (e AuditEventsListRequestValidationError) Cause() error
Cause function returns cause value.
func (AuditEventsListRequestValidationError) Error ¶
func (e AuditEventsListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuditEventsListRequestValidationError) ErrorName ¶
func (e AuditEventsListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuditEventsListRequestValidationError) Field ¶
func (e AuditEventsListRequestValidationError) Field() string
Field function returns field value.
func (AuditEventsListRequestValidationError) Key ¶
func (e AuditEventsListRequestValidationError) Key() bool
Key function returns key value.
func (AuditEventsListRequestValidationError) Reason ¶
func (e AuditEventsListRequestValidationError) Reason() string
Reason function returns reason value.
type AuditListResponse ¶
type AuditListResponse struct { Events []*AuditEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` NumEvents int64 `protobuf:"varint,2,opt,name=NumEvents,proto3" json:"NumEvents,omitempty"` // contains filtered or unexported fields }
func (*AuditListResponse) Descriptor
deprecated
func (*AuditListResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuditListResponse.ProtoReflect.Descriptor instead.
func (*AuditListResponse) GetEvents ¶
func (x *AuditListResponse) GetEvents() []*AuditEvent
func (*AuditListResponse) GetNumEvents ¶
func (x *AuditListResponse) GetNumEvents() int64
func (*AuditListResponse) ProtoMessage ¶
func (*AuditListResponse) ProtoMessage()
func (*AuditListResponse) ProtoReflect ¶
func (x *AuditListResponse) ProtoReflect() protoreflect.Message
func (*AuditListResponse) Reset ¶
func (x *AuditListResponse) Reset()
func (*AuditListResponse) String ¶
func (x *AuditListResponse) String() string
func (*AuditListResponse) Validate ¶
func (m *AuditListResponse) Validate() error
Validate checks the field values on AuditListResponse 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 (*AuditListResponse) ValidateAll ¶
func (m *AuditListResponse) ValidateAll() error
ValidateAll checks the field values on AuditListResponse 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 AuditListResponseMultiError, or nil if none found.
type AuditListResponseMultiError ¶
type AuditListResponseMultiError []error
AuditListResponseMultiError is an error wrapping multiple validation errors returned by AuditListResponse.ValidateAll() if the designated constraints aren't met.
func (AuditListResponseMultiError) AllErrors ¶
func (m AuditListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuditListResponseMultiError) Error ¶
func (m AuditListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuditListResponseValidationError ¶
type AuditListResponseValidationError struct {
// contains filtered or unexported fields
}
AuditListResponseValidationError is the validation error returned by AuditListResponse.Validate if the designated constraints aren't met.
func (AuditListResponseValidationError) Cause ¶
func (e AuditListResponseValidationError) Cause() error
Cause function returns cause value.
func (AuditListResponseValidationError) Error ¶
func (e AuditListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuditListResponseValidationError) ErrorName ¶
func (e AuditListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuditListResponseValidationError) Field ¶
func (e AuditListResponseValidationError) Field() string
Field function returns field value.
func (AuditListResponseValidationError) Key ¶
func (e AuditListResponseValidationError) Key() bool
Key function returns key value.
func (AuditListResponseValidationError) Reason ¶
func (e AuditListResponseValidationError) Reason() string
Reason function returns reason value.
type BanUserRequest ¶
type BanUserRequest struct { UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*BanUserRequest) Descriptor
deprecated
func (*BanUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use BanUserRequest.ProtoReflect.Descriptor instead.
func (*BanUserRequest) GetUserID ¶
func (x *BanUserRequest) GetUserID() int64
func (*BanUserRequest) ProtoMessage ¶
func (*BanUserRequest) ProtoMessage()
func (*BanUserRequest) ProtoReflect ¶
func (x *BanUserRequest) ProtoReflect() protoreflect.Message
func (*BanUserRequest) Reset ¶
func (x *BanUserRequest) Reset()
func (*BanUserRequest) String ¶
func (x *BanUserRequest) String() string
func (*BanUserRequest) Validate ¶
func (m *BanUserRequest) Validate() error
Validate checks the field values on BanUserRequest 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 (*BanUserRequest) ValidateAll ¶
func (m *BanUserRequest) ValidateAll() error
ValidateAll checks the field values on BanUserRequest 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 BanUserRequestMultiError, or nil if none found.
type BanUserRequestMultiError ¶
type BanUserRequestMultiError []error
BanUserRequestMultiError is an error wrapping multiple validation errors returned by BanUserRequest.ValidateAll() if the designated constraints aren't met.
func (BanUserRequestMultiError) AllErrors ¶
func (m BanUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BanUserRequestMultiError) Error ¶
func (m BanUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BanUserRequestValidationError ¶
type BanUserRequestValidationError struct {
// contains filtered or unexported fields
}
BanUserRequestValidationError is the validation error returned by BanUserRequest.Validate if the designated constraints aren't met.
func (BanUserRequestValidationError) Cause ¶
func (e BanUserRequestValidationError) Cause() error
Cause function returns cause value.
func (BanUserRequestValidationError) Error ¶
func (e BanUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BanUserRequestValidationError) ErrorName ¶
func (e BanUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BanUserRequestValidationError) Field ¶
func (e BanUserRequestValidationError) Field() string
Field function returns field value.
func (BanUserRequestValidationError) Key ¶
func (e BanUserRequestValidationError) Key() bool
Key function returns key value.
func (BanUserRequestValidationError) Reason ¶
func (e BanUserRequestValidationError) Reason() string
Reason function returns reason value.
type BanUserResponse ¶
type BanUserResponse struct {
// contains filtered or unexported fields
}
func (*BanUserResponse) Descriptor
deprecated
func (*BanUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use BanUserResponse.ProtoReflect.Descriptor instead.
func (*BanUserResponse) ProtoMessage ¶
func (*BanUserResponse) ProtoMessage()
func (*BanUserResponse) ProtoReflect ¶
func (x *BanUserResponse) ProtoReflect() protoreflect.Message
func (*BanUserResponse) Reset ¶
func (x *BanUserResponse) Reset()
func (*BanUserResponse) String ¶
func (x *BanUserResponse) String() string
func (*BanUserResponse) Validate ¶
func (m *BanUserResponse) Validate() error
Validate checks the field values on BanUserResponse 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 (*BanUserResponse) ValidateAll ¶
func (m *BanUserResponse) ValidateAll() error
ValidateAll checks the field values on BanUserResponse 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 BanUserResponseMultiError, or nil if none found.
type BanUserResponseMultiError ¶
type BanUserResponseMultiError []error
BanUserResponseMultiError is an error wrapping multiple validation errors returned by BanUserResponse.ValidateAll() if the designated constraints aren't met.
func (BanUserResponseMultiError) AllErrors ¶
func (m BanUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BanUserResponseMultiError) Error ¶
func (m BanUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BanUserResponseValidationError ¶
type BanUserResponseValidationError struct {
// contains filtered or unexported fields
}
BanUserResponseValidationError is the validation error returned by BanUserResponse.Validate if the designated constraints aren't met.
func (BanUserResponseValidationError) Cause ¶
func (e BanUserResponseValidationError) Cause() error
Cause function returns cause value.
func (BanUserResponseValidationError) Error ¶
func (e BanUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (BanUserResponseValidationError) ErrorName ¶
func (e BanUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (BanUserResponseValidationError) Field ¶
func (e BanUserResponseValidationError) Field() string
Field function returns field value.
func (BanUserResponseValidationError) Key ¶
func (e BanUserResponseValidationError) Key() bool
Key function returns key value.
func (BanUserResponseValidationError) Reason ¶
func (e BanUserResponseValidationError) Reason() string
Reason function returns reason value.
type GetForeignUserRequest ¶
type GetForeignUserRequest struct { OriginalWebsite string `protobuf:"bytes,1,opt,name=originalWebsite,proto3" json:"originalWebsite,omitempty"` ForeignUserID string `protobuf:"bytes,2,opt,name=foreignUserID,proto3" json:"foreignUserID,omitempty"` // contains filtered or unexported fields }
func (*GetForeignUserRequest) Descriptor
deprecated
func (*GetForeignUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetForeignUserRequest.ProtoReflect.Descriptor instead.
func (*GetForeignUserRequest) GetForeignUserID ¶
func (x *GetForeignUserRequest) GetForeignUserID() string
func (*GetForeignUserRequest) GetOriginalWebsite ¶
func (x *GetForeignUserRequest) GetOriginalWebsite() string
func (*GetForeignUserRequest) ProtoMessage ¶
func (*GetForeignUserRequest) ProtoMessage()
func (*GetForeignUserRequest) ProtoReflect ¶
func (x *GetForeignUserRequest) ProtoReflect() protoreflect.Message
func (*GetForeignUserRequest) Reset ¶
func (x *GetForeignUserRequest) Reset()
func (*GetForeignUserRequest) String ¶
func (x *GetForeignUserRequest) String() string
func (*GetForeignUserRequest) Validate ¶
func (m *GetForeignUserRequest) Validate() error
Validate checks the field values on GetForeignUserRequest 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 (*GetForeignUserRequest) ValidateAll ¶
func (m *GetForeignUserRequest) ValidateAll() error
ValidateAll checks the field values on GetForeignUserRequest 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 GetForeignUserRequestMultiError, or nil if none found.
type GetForeignUserRequestMultiError ¶
type GetForeignUserRequestMultiError []error
GetForeignUserRequestMultiError is an error wrapping multiple validation errors returned by GetForeignUserRequest.ValidateAll() if the designated constraints aren't met.
func (GetForeignUserRequestMultiError) AllErrors ¶
func (m GetForeignUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetForeignUserRequestMultiError) Error ¶
func (m GetForeignUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetForeignUserRequestValidationError ¶
type GetForeignUserRequestValidationError struct {
// contains filtered or unexported fields
}
GetForeignUserRequestValidationError is the validation error returned by GetForeignUserRequest.Validate if the designated constraints aren't met.
func (GetForeignUserRequestValidationError) Cause ¶
func (e GetForeignUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetForeignUserRequestValidationError) Error ¶
func (e GetForeignUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetForeignUserRequestValidationError) ErrorName ¶
func (e GetForeignUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetForeignUserRequestValidationError) Field ¶
func (e GetForeignUserRequestValidationError) Field() string
Field function returns field value.
func (GetForeignUserRequestValidationError) Key ¶
func (e GetForeignUserRequestValidationError) Key() bool
Key function returns key value.
func (GetForeignUserRequestValidationError) Reason ¶
func (e GetForeignUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetForeignUserResponse ¶
type GetForeignUserResponse struct { NewUID int64 `protobuf:"varint,1,opt,name=newUID,proto3" json:"newUID,omitempty"` // contains filtered or unexported fields }
func (*GetForeignUserResponse) Descriptor
deprecated
func (*GetForeignUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetForeignUserResponse.ProtoReflect.Descriptor instead.
func (*GetForeignUserResponse) GetNewUID ¶
func (x *GetForeignUserResponse) GetNewUID() int64
func (*GetForeignUserResponse) ProtoMessage ¶
func (*GetForeignUserResponse) ProtoMessage()
func (*GetForeignUserResponse) ProtoReflect ¶
func (x *GetForeignUserResponse) ProtoReflect() protoreflect.Message
func (*GetForeignUserResponse) Reset ¶
func (x *GetForeignUserResponse) Reset()
func (*GetForeignUserResponse) String ¶
func (x *GetForeignUserResponse) String() string
func (*GetForeignUserResponse) Validate ¶
func (m *GetForeignUserResponse) Validate() error
Validate checks the field values on GetForeignUserResponse 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 (*GetForeignUserResponse) ValidateAll ¶
func (m *GetForeignUserResponse) ValidateAll() error
ValidateAll checks the field values on GetForeignUserResponse 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 GetForeignUserResponseMultiError, or nil if none found.
type GetForeignUserResponseMultiError ¶
type GetForeignUserResponseMultiError []error
GetForeignUserResponseMultiError is an error wrapping multiple validation errors returned by GetForeignUserResponse.ValidateAll() if the designated constraints aren't met.
func (GetForeignUserResponseMultiError) AllErrors ¶
func (m GetForeignUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetForeignUserResponseMultiError) Error ¶
func (m GetForeignUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetForeignUserResponseValidationError ¶
type GetForeignUserResponseValidationError struct {
// contains filtered or unexported fields
}
GetForeignUserResponseValidationError is the validation error returned by GetForeignUserResponse.Validate if the designated constraints aren't met.
func (GetForeignUserResponseValidationError) Cause ¶
func (e GetForeignUserResponseValidationError) Cause() error
Cause function returns cause value.
func (GetForeignUserResponseValidationError) Error ¶
func (e GetForeignUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetForeignUserResponseValidationError) ErrorName ¶
func (e GetForeignUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetForeignUserResponseValidationError) Field ¶
func (e GetForeignUserResponseValidationError) Field() string
Field function returns field value.
func (GetForeignUserResponseValidationError) Key ¶
func (e GetForeignUserResponseValidationError) Key() bool
Key function returns key value.
func (GetForeignUserResponseValidationError) Reason ¶
func (e GetForeignUserResponseValidationError) Reason() string
Reason function returns reason value.
type GetUserFromIDRequest ¶
type GetUserFromIDRequest struct { UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*GetUserFromIDRequest) Descriptor
deprecated
func (*GetUserFromIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFromIDRequest.ProtoReflect.Descriptor instead.
func (*GetUserFromIDRequest) GetUserID ¶
func (x *GetUserFromIDRequest) GetUserID() int64
func (*GetUserFromIDRequest) ProtoMessage ¶
func (*GetUserFromIDRequest) ProtoMessage()
func (*GetUserFromIDRequest) ProtoReflect ¶
func (x *GetUserFromIDRequest) ProtoReflect() protoreflect.Message
func (*GetUserFromIDRequest) Reset ¶
func (x *GetUserFromIDRequest) Reset()
func (*GetUserFromIDRequest) String ¶
func (x *GetUserFromIDRequest) String() string
func (*GetUserFromIDRequest) Validate ¶
func (m *GetUserFromIDRequest) Validate() error
Validate checks the field values on GetUserFromIDRequest 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 (*GetUserFromIDRequest) ValidateAll ¶
func (m *GetUserFromIDRequest) ValidateAll() error
ValidateAll checks the field values on GetUserFromIDRequest 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 GetUserFromIDRequestMultiError, or nil if none found.
type GetUserFromIDRequestMultiError ¶
type GetUserFromIDRequestMultiError []error
GetUserFromIDRequestMultiError is an error wrapping multiple validation errors returned by GetUserFromIDRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserFromIDRequestMultiError) AllErrors ¶
func (m GetUserFromIDRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserFromIDRequestMultiError) Error ¶
func (m GetUserFromIDRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserFromIDRequestValidationError ¶
type GetUserFromIDRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserFromIDRequestValidationError is the validation error returned by GetUserFromIDRequest.Validate if the designated constraints aren't met.
func (GetUserFromIDRequestValidationError) Cause ¶
func (e GetUserFromIDRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserFromIDRequestValidationError) Error ¶
func (e GetUserFromIDRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserFromIDRequestValidationError) ErrorName ¶
func (e GetUserFromIDRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserFromIDRequestValidationError) Field ¶
func (e GetUserFromIDRequestValidationError) Field() string
Field function returns field value.
func (GetUserFromIDRequestValidationError) Key ¶
func (e GetUserFromIDRequestValidationError) Key() bool
Key function returns key value.
func (GetUserFromIDRequestValidationError) Reason ¶
func (e GetUserFromIDRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserIDsForUsernameRequest ¶
type GetUserIDsForUsernameRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetUserIDsForUsernameRequest) Descriptor
deprecated
func (*GetUserIDsForUsernameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserIDsForUsernameRequest.ProtoReflect.Descriptor instead.
func (*GetUserIDsForUsernameRequest) GetUsername ¶
func (x *GetUserIDsForUsernameRequest) GetUsername() string
func (*GetUserIDsForUsernameRequest) ProtoMessage ¶
func (*GetUserIDsForUsernameRequest) ProtoMessage()
func (*GetUserIDsForUsernameRequest) ProtoReflect ¶
func (x *GetUserIDsForUsernameRequest) ProtoReflect() protoreflect.Message
func (*GetUserIDsForUsernameRequest) Reset ¶
func (x *GetUserIDsForUsernameRequest) Reset()
func (*GetUserIDsForUsernameRequest) String ¶
func (x *GetUserIDsForUsernameRequest) String() string
func (*GetUserIDsForUsernameRequest) Validate ¶
func (m *GetUserIDsForUsernameRequest) Validate() error
Validate checks the field values on GetUserIDsForUsernameRequest 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 (*GetUserIDsForUsernameRequest) ValidateAll ¶
func (m *GetUserIDsForUsernameRequest) ValidateAll() error
ValidateAll checks the field values on GetUserIDsForUsernameRequest 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 GetUserIDsForUsernameRequestMultiError, or nil if none found.
type GetUserIDsForUsernameRequestMultiError ¶
type GetUserIDsForUsernameRequestMultiError []error
GetUserIDsForUsernameRequestMultiError is an error wrapping multiple validation errors returned by GetUserIDsForUsernameRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserIDsForUsernameRequestMultiError) AllErrors ¶
func (m GetUserIDsForUsernameRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserIDsForUsernameRequestMultiError) Error ¶
func (m GetUserIDsForUsernameRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserIDsForUsernameRequestValidationError ¶
type GetUserIDsForUsernameRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserIDsForUsernameRequestValidationError is the validation error returned by GetUserIDsForUsernameRequest.Validate if the designated constraints aren't met.
func (GetUserIDsForUsernameRequestValidationError) Cause ¶
func (e GetUserIDsForUsernameRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserIDsForUsernameRequestValidationError) Error ¶
func (e GetUserIDsForUsernameRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserIDsForUsernameRequestValidationError) ErrorName ¶
func (e GetUserIDsForUsernameRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserIDsForUsernameRequestValidationError) Field ¶
func (e GetUserIDsForUsernameRequestValidationError) Field() string
Field function returns field value.
func (GetUserIDsForUsernameRequestValidationError) Key ¶
func (e GetUserIDsForUsernameRequestValidationError) Key() bool
Key function returns key value.
func (GetUserIDsForUsernameRequestValidationError) Reason ¶
func (e GetUserIDsForUsernameRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserIDsForUsernameResponse ¶
type GetUserIDsForUsernameResponse struct { UserIDs []int64 `protobuf:"varint,1,rep,packed,name=userIDs,proto3" json:"userIDs,omitempty"` // contains filtered or unexported fields }
func (*GetUserIDsForUsernameResponse) Descriptor
deprecated
func (*GetUserIDsForUsernameResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserIDsForUsernameResponse.ProtoReflect.Descriptor instead.
func (*GetUserIDsForUsernameResponse) GetUserIDs ¶
func (x *GetUserIDsForUsernameResponse) GetUserIDs() []int64
func (*GetUserIDsForUsernameResponse) ProtoMessage ¶
func (*GetUserIDsForUsernameResponse) ProtoMessage()
func (*GetUserIDsForUsernameResponse) ProtoReflect ¶
func (x *GetUserIDsForUsernameResponse) ProtoReflect() protoreflect.Message
func (*GetUserIDsForUsernameResponse) Reset ¶
func (x *GetUserIDsForUsernameResponse) Reset()
func (*GetUserIDsForUsernameResponse) String ¶
func (x *GetUserIDsForUsernameResponse) String() string
func (*GetUserIDsForUsernameResponse) Validate ¶
func (m *GetUserIDsForUsernameResponse) Validate() error
Validate checks the field values on GetUserIDsForUsernameResponse 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 (*GetUserIDsForUsernameResponse) ValidateAll ¶
func (m *GetUserIDsForUsernameResponse) ValidateAll() error
ValidateAll checks the field values on GetUserIDsForUsernameResponse 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 GetUserIDsForUsernameResponseMultiError, or nil if none found.
type GetUserIDsForUsernameResponseMultiError ¶
type GetUserIDsForUsernameResponseMultiError []error
GetUserIDsForUsernameResponseMultiError is an error wrapping multiple validation errors returned by GetUserIDsForUsernameResponse.ValidateAll() if the designated constraints aren't met.
func (GetUserIDsForUsernameResponseMultiError) AllErrors ¶
func (m GetUserIDsForUsernameResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserIDsForUsernameResponseMultiError) Error ¶
func (m GetUserIDsForUsernameResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserIDsForUsernameResponseValidationError ¶
type GetUserIDsForUsernameResponseValidationError struct {
// contains filtered or unexported fields
}
GetUserIDsForUsernameResponseValidationError is the validation error returned by GetUserIDsForUsernameResponse.Validate if the designated constraints aren't met.
func (GetUserIDsForUsernameResponseValidationError) Cause ¶
func (e GetUserIDsForUsernameResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUserIDsForUsernameResponseValidationError) Error ¶
func (e GetUserIDsForUsernameResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserIDsForUsernameResponseValidationError) ErrorName ¶
func (e GetUserIDsForUsernameResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserIDsForUsernameResponseValidationError) Field ¶
func (e GetUserIDsForUsernameResponseValidationError) Field() string
Field function returns field value.
func (GetUserIDsForUsernameResponseValidationError) Key ¶
func (e GetUserIDsForUsernameResponseValidationError) Key() bool
Key function returns key value.
func (GetUserIDsForUsernameResponseValidationError) Reason ¶
func (e GetUserIDsForUsernameResponseValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest 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 (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest 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 LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetJwt ¶
func (x *LoginResponse) GetJwt() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse 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 (*LoginResponse) ValidateAll ¶
func (m *LoginResponse) ValidateAll() error
ValidateAll checks the field values on LoginResponse 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 LoginResponseMultiError, or nil if none found.
type LoginResponseMultiError ¶
type LoginResponseMultiError []error
LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.
func (LoginResponseMultiError) AllErrors ¶
func (m LoginResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginResponseMultiError) Error ¶
func (m LoginResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type NewAuditEventRequest ¶
type NewAuditEventRequest struct { User_ID int64 `protobuf:"varint,1,opt,name=user_ID,json=userID,proto3" json:"user_ID,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*NewAuditEventRequest) Descriptor
deprecated
func (*NewAuditEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewAuditEventRequest.ProtoReflect.Descriptor instead.
func (*NewAuditEventRequest) GetMessage ¶
func (x *NewAuditEventRequest) GetMessage() string
func (*NewAuditEventRequest) GetUser_ID ¶
func (x *NewAuditEventRequest) GetUser_ID() int64
func (*NewAuditEventRequest) ProtoMessage ¶
func (*NewAuditEventRequest) ProtoMessage()
func (*NewAuditEventRequest) ProtoReflect ¶
func (x *NewAuditEventRequest) ProtoReflect() protoreflect.Message
func (*NewAuditEventRequest) Reset ¶
func (x *NewAuditEventRequest) Reset()
func (*NewAuditEventRequest) String ¶
func (x *NewAuditEventRequest) String() string
func (*NewAuditEventRequest) Validate ¶
func (m *NewAuditEventRequest) Validate() error
Validate checks the field values on NewAuditEventRequest 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 (*NewAuditEventRequest) ValidateAll ¶
func (m *NewAuditEventRequest) ValidateAll() error
ValidateAll checks the field values on NewAuditEventRequest 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 NewAuditEventRequestMultiError, or nil if none found.
type NewAuditEventRequestMultiError ¶
type NewAuditEventRequestMultiError []error
NewAuditEventRequestMultiError is an error wrapping multiple validation errors returned by NewAuditEventRequest.ValidateAll() if the designated constraints aren't met.
func (NewAuditEventRequestMultiError) AllErrors ¶
func (m NewAuditEventRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NewAuditEventRequestMultiError) Error ¶
func (m NewAuditEventRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NewAuditEventRequestValidationError ¶
type NewAuditEventRequestValidationError struct {
// contains filtered or unexported fields
}
NewAuditEventRequestValidationError is the validation error returned by NewAuditEventRequest.Validate if the designated constraints aren't met.
func (NewAuditEventRequestValidationError) Cause ¶
func (e NewAuditEventRequestValidationError) Cause() error
Cause function returns cause value.
func (NewAuditEventRequestValidationError) Error ¶
func (e NewAuditEventRequestValidationError) Error() string
Error satisfies the builtin error interface
func (NewAuditEventRequestValidationError) ErrorName ¶
func (e NewAuditEventRequestValidationError) ErrorName() string
ErrorName returns error name.
func (NewAuditEventRequestValidationError) Field ¶
func (e NewAuditEventRequestValidationError) Field() string
Field function returns field value.
func (NewAuditEventRequestValidationError) Key ¶
func (e NewAuditEventRequestValidationError) Key() bool
Key function returns key value.
func (NewAuditEventRequestValidationError) Reason ¶
func (e NewAuditEventRequestValidationError) Reason() string
Reason function returns reason value.
type Nothing ¶
type Nothing struct {
// contains filtered or unexported fields
}
func (*Nothing) Descriptor
deprecated
func (*Nothing) ProtoMessage ¶
func (*Nothing) ProtoMessage()
func (*Nothing) ProtoReflect ¶
func (x *Nothing) ProtoReflect() protoreflect.Message
func (*Nothing) Validate ¶
Validate checks the field values on Nothing 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 (*Nothing) ValidateAll ¶
ValidateAll checks the field values on Nothing 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 NothingMultiError, or nil if none found.
type NothingMultiError ¶
type NothingMultiError []error
NothingMultiError is an error wrapping multiple validation errors returned by Nothing.ValidateAll() if the designated constraints aren't met.
func (NothingMultiError) AllErrors ¶
func (m NothingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NothingMultiError) Error ¶
func (m NothingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NothingValidationError ¶
type NothingValidationError struct {
// contains filtered or unexported fields
}
NothingValidationError is the validation error returned by Nothing.Validate if the designated constraints aren't met.
func (NothingValidationError) Cause ¶
func (e NothingValidationError) Cause() error
Cause function returns cause value.
func (NothingValidationError) Error ¶
func (e NothingValidationError) Error() string
Error satisfies the builtin error interface
func (NothingValidationError) ErrorName ¶
func (e NothingValidationError) ErrorName() string
ErrorName returns error name.
func (NothingValidationError) Field ¶
func (e NothingValidationError) Field() string
Field function returns field value.
func (NothingValidationError) Key ¶
func (e NothingValidationError) Key() bool
Key function returns key value.
func (NothingValidationError) Reason ¶
func (e NothingValidationError) Reason() string
Reason function returns reason value.
type RegisterRequest ¶
type RegisterRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` ForeignUser bool `protobuf:"varint,4,opt,name=foreignUser,proto3" json:"foreignUser,omitempty"` // If true, indicates that the user was created due to archival from another website, in which case // the password field will not be used ForeignUserID string `protobuf:"bytes,5,opt,name=foreignUserID,proto3" json:"foreignUserID,omitempty"` ForeignWebsite string `protobuf:"bytes,6,opt,name=foreignWebsite,proto3" json:"foreignWebsite,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetForeignUser ¶
func (x *RegisterRequest) GetForeignUser() bool
func (*RegisterRequest) GetForeignUserID ¶
func (x *RegisterRequest) GetForeignUserID() string
func (*RegisterRequest) GetForeignWebsite ¶
func (x *RegisterRequest) GetForeignWebsite() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (x *RegisterRequest) GetUsername() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
func (*RegisterRequest) Validate ¶
func (m *RegisterRequest) Validate() error
Validate checks the field values on RegisterRequest 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 (*RegisterRequest) ValidateAll ¶
func (m *RegisterRequest) ValidateAll() error
ValidateAll checks the field values on RegisterRequest 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 RegisterRequestMultiError, or nil if none found.
type RegisterRequestMultiError ¶
type RegisterRequestMultiError []error
RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterRequestMultiError) AllErrors ¶
func (m RegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequestMultiError) Error ¶
func (m RegisterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequestValidationError ¶
type RegisterRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.
func (RegisterRequestValidationError) Cause ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterResponse ¶
type RegisterResponse struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetJwt ¶
func (x *RegisterResponse) GetJwt() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
func (*RegisterResponse) Validate ¶
func (m *RegisterResponse) Validate() error
Validate checks the field values on RegisterResponse 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 (*RegisterResponse) ValidateAll ¶
func (m *RegisterResponse) ValidateAll() error
ValidateAll checks the field values on RegisterResponse 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 RegisterResponseMultiError, or nil if none found.
type RegisterResponseMultiError ¶
type RegisterResponseMultiError []error
RegisterResponseMultiError is an error wrapping multiple validation errors returned by RegisterResponse.ValidateAll() if the designated constraints aren't met.
func (RegisterResponseMultiError) AllErrors ¶
func (m RegisterResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterResponseMultiError) Error ¶
func (m RegisterResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterResponseValidationError ¶
type RegisterResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.
func (RegisterResponseValidationError) Cause ¶
func (e RegisterResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterResponseValidationError) Error ¶
func (e RegisterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterResponseValidationError) ErrorName ¶
func (e RegisterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterResponseValidationError) Field ¶
func (e RegisterResponseValidationError) Field() string
Field function returns field value.
func (RegisterResponseValidationError) Key ¶
func (e RegisterResponseValidationError) Key() bool
Key function returns key value.
func (RegisterResponseValidationError) Reason ¶
func (e RegisterResponseValidationError) Reason() string
Reason function returns reason value.
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"` OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // contains filtered or unexported fields }
func (*ResetPasswordRequest) Descriptor
deprecated
func (*ResetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) GetNewPassword ¶
func (x *ResetPasswordRequest) GetNewPassword() string
func (*ResetPasswordRequest) GetOldPassword ¶
func (x *ResetPasswordRequest) GetOldPassword() string
func (*ResetPasswordRequest) GetUserID ¶
func (x *ResetPasswordRequest) GetUserID() int64
func (*ResetPasswordRequest) ProtoMessage ¶
func (*ResetPasswordRequest) ProtoMessage()
func (*ResetPasswordRequest) ProtoReflect ¶
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
func (*ResetPasswordRequest) Reset ¶
func (x *ResetPasswordRequest) Reset()
func (*ResetPasswordRequest) String ¶
func (x *ResetPasswordRequest) String() string
func (*ResetPasswordRequest) Validate ¶
func (m *ResetPasswordRequest) Validate() error
Validate checks the field values on ResetPasswordRequest 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 (*ResetPasswordRequest) ValidateAll ¶
func (m *ResetPasswordRequest) ValidateAll() error
ValidateAll checks the field values on ResetPasswordRequest 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 ResetPasswordRequestMultiError, or nil if none found.
type ResetPasswordRequestMultiError ¶
type ResetPasswordRequestMultiError []error
ResetPasswordRequestMultiError is an error wrapping multiple validation errors returned by ResetPasswordRequest.ValidateAll() if the designated constraints aren't met.
func (ResetPasswordRequestMultiError) AllErrors ¶
func (m ResetPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResetPasswordRequestMultiError) Error ¶
func (m ResetPasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResetPasswordRequestValidationError ¶
type ResetPasswordRequestValidationError struct {
// contains filtered or unexported fields
}
ResetPasswordRequestValidationError is the validation error returned by ResetPasswordRequest.Validate if the designated constraints aren't met.
func (ResetPasswordRequestValidationError) Cause ¶
func (e ResetPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (ResetPasswordRequestValidationError) Error ¶
func (e ResetPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ResetPasswordRequestValidationError) ErrorName ¶
func (e ResetPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ResetPasswordRequestValidationError) Field ¶
func (e ResetPasswordRequestValidationError) Field() string
Field function returns field value.
func (ResetPasswordRequestValidationError) Key ¶
func (e ResetPasswordRequestValidationError) Key() bool
Key function returns key value.
func (ResetPasswordRequestValidationError) Reason ¶
func (e ResetPasswordRequestValidationError) Reason() string
Reason function returns reason value.
type SetRankRequest ¶
type SetRankRequest struct { UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` Rank UserRank `protobuf:"varint,2,opt,name=rank,proto3,enum=proto.UserRank" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*SetRankRequest) Descriptor
deprecated
func (*SetRankRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRankRequest.ProtoReflect.Descriptor instead.
func (*SetRankRequest) GetRank ¶
func (x *SetRankRequest) GetRank() UserRank
func (*SetRankRequest) GetUserID ¶
func (x *SetRankRequest) GetUserID() int64
func (*SetRankRequest) ProtoMessage ¶
func (*SetRankRequest) ProtoMessage()
func (*SetRankRequest) ProtoReflect ¶
func (x *SetRankRequest) ProtoReflect() protoreflect.Message
func (*SetRankRequest) Reset ¶
func (x *SetRankRequest) Reset()
func (*SetRankRequest) String ¶
func (x *SetRankRequest) String() string
func (*SetRankRequest) Validate ¶
func (m *SetRankRequest) Validate() error
Validate checks the field values on SetRankRequest 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 (*SetRankRequest) ValidateAll ¶
func (m *SetRankRequest) ValidateAll() error
ValidateAll checks the field values on SetRankRequest 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 SetRankRequestMultiError, or nil if none found.
type SetRankRequestMultiError ¶
type SetRankRequestMultiError []error
SetRankRequestMultiError is an error wrapping multiple validation errors returned by SetRankRequest.ValidateAll() if the designated constraints aren't met.
func (SetRankRequestMultiError) AllErrors ¶
func (m SetRankRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetRankRequestMultiError) Error ¶
func (m SetRankRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetRankRequestValidationError ¶
type SetRankRequestValidationError struct {
// contains filtered or unexported fields
}
SetRankRequestValidationError is the validation error returned by SetRankRequest.Validate if the designated constraints aren't met.
func (SetRankRequestValidationError) Cause ¶
func (e SetRankRequestValidationError) Cause() error
Cause function returns cause value.
func (SetRankRequestValidationError) Error ¶
func (e SetRankRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SetRankRequestValidationError) ErrorName ¶
func (e SetRankRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SetRankRequestValidationError) Field ¶
func (e SetRankRequestValidationError) Field() string
Field function returns field value.
func (SetRankRequestValidationError) Key ¶
func (e SetRankRequestValidationError) Key() bool
Key function returns key value.
func (SetRankRequestValidationError) Reason ¶
func (e SetRankRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) AddAuditEvent ¶
func (UnimplementedUserServiceServer) AddAuditEvent(context.Context, *NewAuditEventRequest) (*Nothing, error)
func (UnimplementedUserServiceServer) BanUser ¶
func (UnimplementedUserServiceServer) BanUser(context.Context, *BanUserRequest) (*BanUserResponse, error)
func (UnimplementedUserServiceServer) GetAuditEvents ¶
func (UnimplementedUserServiceServer) GetAuditEvents(context.Context, *AuditEventsListRequest) (*AuditListResponse, error)
func (UnimplementedUserServiceServer) GetUserForForeignUID ¶
func (UnimplementedUserServiceServer) GetUserForForeignUID(context.Context, *GetForeignUserRequest) (*GetForeignUserResponse, error)
func (UnimplementedUserServiceServer) GetUserFromID ¶
func (UnimplementedUserServiceServer) GetUserFromID(context.Context, *GetUserFromIDRequest) (*UserResponse, error)
func (UnimplementedUserServiceServer) GetUserIDsForUsername ¶
func (UnimplementedUserServiceServer) GetUserIDsForUsername(context.Context, *GetUserIDsForUsernameRequest) (*GetUserIDsForUsernameResponse, error)
func (UnimplementedUserServiceServer) Login ¶
func (UnimplementedUserServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedUserServiceServer) Register ¶
func (UnimplementedUserServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedUserServiceServer) ResetPassword ¶
func (UnimplementedUserServiceServer) ResetPassword(context.Context, *ResetPasswordRequest) (*Nothing, error)
func (UnimplementedUserServiceServer) SetUserRank ¶
func (UnimplementedUserServiceServer) SetUserRank(context.Context, *SetRankRequest) (*Nothing, error)
func (UnimplementedUserServiceServer) ValidateJWT ¶
func (UnimplementedUserServiceServer) ValidateJWT(context.Context, *ValidateJWTRequest) (*ValidateJWTResponse, 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 UserRank ¶
type UserRank int32
func (UserRank) Descriptor ¶
func (UserRank) Descriptor() protoreflect.EnumDescriptor
func (UserRank) EnumDescriptor
deprecated
func (UserRank) Number ¶
func (x UserRank) Number() protoreflect.EnumNumber
func (UserRank) Type ¶
func (UserRank) Type() protoreflect.EnumType
type UserResponse ¶
type UserResponse struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Rank UserRank `protobuf:"varint,3,opt,name=rank,proto3,enum=proto.UserRank" json:"rank,omitempty"` Banned bool `protobuf:"varint,4,opt,name=banned,proto3" json:"banned,omitempty"` // contains filtered or unexported fields }
func (*UserResponse) Descriptor
deprecated
func (*UserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
func (*UserResponse) GetBanned ¶
func (x *UserResponse) GetBanned() bool
func (*UserResponse) GetEmail ¶
func (x *UserResponse) GetEmail() string
func (*UserResponse) GetRank ¶
func (x *UserResponse) GetRank() UserRank
func (*UserResponse) GetUsername ¶
func (x *UserResponse) GetUsername() string
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) ProtoReflect ¶
func (x *UserResponse) ProtoReflect() protoreflect.Message
func (*UserResponse) Reset ¶
func (x *UserResponse) Reset()
func (*UserResponse) String ¶
func (x *UserResponse) String() string
func (*UserResponse) Validate ¶
func (m *UserResponse) Validate() error
Validate checks the field values on UserResponse 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 (*UserResponse) ValidateAll ¶
func (m *UserResponse) ValidateAll() error
ValidateAll checks the field values on UserResponse 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 UserResponseMultiError, or nil if none found.
type UserResponseMultiError ¶
type UserResponseMultiError []error
UserResponseMultiError is an error wrapping multiple validation errors returned by UserResponse.ValidateAll() if the designated constraints aren't met.
func (UserResponseMultiError) AllErrors ¶
func (m UserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserResponseMultiError) Error ¶
func (m UserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserResponseValidationError ¶
type UserResponseValidationError struct {
// contains filtered or unexported fields
}
UserResponseValidationError is the validation error returned by UserResponse.Validate if the designated constraints aren't met.
func (UserResponseValidationError) Cause ¶
func (e UserResponseValidationError) Cause() error
Cause function returns cause value.
func (UserResponseValidationError) Error ¶
func (e UserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserResponseValidationError) ErrorName ¶
func (e UserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserResponseValidationError) Field ¶
func (e UserResponseValidationError) Field() string
Field function returns field value.
func (UserResponseValidationError) Key ¶
func (e UserResponseValidationError) Key() bool
Key function returns key value.
func (UserResponseValidationError) Reason ¶
func (e UserResponseValidationError) Reason() string
Reason function returns reason value.
type UserServiceClient ¶
type UserServiceClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) ValidateJWT(ctx context.Context, in *ValidateJWTRequest, opts ...grpc.CallOption) (*ValidateJWTResponse, error) GetUserFromID(ctx context.Context, in *GetUserFromIDRequest, opts ...grpc.CallOption) (*UserResponse, error) GetUserForForeignUID(ctx context.Context, in *GetForeignUserRequest, opts ...grpc.CallOption) (*GetForeignUserResponse, error) GetUserIDsForUsername(ctx context.Context, in *GetUserIDsForUsernameRequest, opts ...grpc.CallOption) (*GetUserIDsForUsernameResponse, error) BanUser(ctx context.Context, in *BanUserRequest, opts ...grpc.CallOption) (*BanUserResponse, error) SetUserRank(ctx context.Context, in *SetRankRequest, opts ...grpc.CallOption) (*Nothing, error) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*Nothing, error) AddAuditEvent(ctx context.Context, in *NewAuditEventRequest, opts ...grpc.CallOption) (*Nothing, error) GetAuditEvents(ctx context.Context, in *AuditEventsListRequest, opts ...grpc.CallOption) (*AuditListResponse, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) ValidateJWT(context.Context, *ValidateJWTRequest) (*ValidateJWTResponse, error) GetUserFromID(context.Context, *GetUserFromIDRequest) (*UserResponse, error) GetUserForForeignUID(context.Context, *GetForeignUserRequest) (*GetForeignUserResponse, error) GetUserIDsForUsername(context.Context, *GetUserIDsForUsernameRequest) (*GetUserIDsForUsernameResponse, error) BanUser(context.Context, *BanUserRequest) (*BanUserResponse, error) SetUserRank(context.Context, *SetRankRequest) (*Nothing, error) ResetPassword(context.Context, *ResetPasswordRequest) (*Nothing, error) AddAuditEvent(context.Context, *NewAuditEventRequest) (*Nothing, error) GetAuditEvents(context.Context, *AuditEventsListRequest) (*AuditListResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type ValidateJWTRequest ¶
type ValidateJWTRequest struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*ValidateJWTRequest) Descriptor
deprecated
func (*ValidateJWTRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateJWTRequest.ProtoReflect.Descriptor instead.
func (*ValidateJWTRequest) GetJwt ¶
func (x *ValidateJWTRequest) GetJwt() string
func (*ValidateJWTRequest) ProtoMessage ¶
func (*ValidateJWTRequest) ProtoMessage()
func (*ValidateJWTRequest) ProtoReflect ¶
func (x *ValidateJWTRequest) ProtoReflect() protoreflect.Message
func (*ValidateJWTRequest) Reset ¶
func (x *ValidateJWTRequest) Reset()
func (*ValidateJWTRequest) String ¶
func (x *ValidateJWTRequest) String() string
func (*ValidateJWTRequest) Validate ¶
func (m *ValidateJWTRequest) Validate() error
Validate checks the field values on ValidateJWTRequest 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 (*ValidateJWTRequest) ValidateAll ¶
func (m *ValidateJWTRequest) ValidateAll() error
ValidateAll checks the field values on ValidateJWTRequest 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 ValidateJWTRequestMultiError, or nil if none found.
type ValidateJWTRequestMultiError ¶
type ValidateJWTRequestMultiError []error
ValidateJWTRequestMultiError is an error wrapping multiple validation errors returned by ValidateJWTRequest.ValidateAll() if the designated constraints aren't met.
func (ValidateJWTRequestMultiError) AllErrors ¶
func (m ValidateJWTRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ValidateJWTRequestMultiError) Error ¶
func (m ValidateJWTRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ValidateJWTRequestValidationError ¶
type ValidateJWTRequestValidationError struct {
// contains filtered or unexported fields
}
ValidateJWTRequestValidationError is the validation error returned by ValidateJWTRequest.Validate if the designated constraints aren't met.
func (ValidateJWTRequestValidationError) Cause ¶
func (e ValidateJWTRequestValidationError) Cause() error
Cause function returns cause value.
func (ValidateJWTRequestValidationError) Error ¶
func (e ValidateJWTRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ValidateJWTRequestValidationError) ErrorName ¶
func (e ValidateJWTRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ValidateJWTRequestValidationError) Field ¶
func (e ValidateJWTRequestValidationError) Field() string
Field function returns field value.
func (ValidateJWTRequestValidationError) Key ¶
func (e ValidateJWTRequestValidationError) Key() bool
Key function returns key value.
func (ValidateJWTRequestValidationError) Reason ¶
func (e ValidateJWTRequestValidationError) Reason() string
Reason function returns reason value.
type ValidateJWTResponse ¶
type ValidateJWTResponse struct { IsValid bool `protobuf:"varint,1,opt,name=isValid,proto3" json:"isValid,omitempty"` Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*ValidateJWTResponse) Descriptor
deprecated
func (*ValidateJWTResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateJWTResponse.ProtoReflect.Descriptor instead.
func (*ValidateJWTResponse) GetIsValid ¶
func (x *ValidateJWTResponse) GetIsValid() bool
func (*ValidateJWTResponse) GetUid ¶
func (x *ValidateJWTResponse) GetUid() int64
func (*ValidateJWTResponse) ProtoMessage ¶
func (*ValidateJWTResponse) ProtoMessage()
func (*ValidateJWTResponse) ProtoReflect ¶
func (x *ValidateJWTResponse) ProtoReflect() protoreflect.Message
func (*ValidateJWTResponse) Reset ¶
func (x *ValidateJWTResponse) Reset()
func (*ValidateJWTResponse) String ¶
func (x *ValidateJWTResponse) String() string
func (*ValidateJWTResponse) Validate ¶
func (m *ValidateJWTResponse) Validate() error
Validate checks the field values on ValidateJWTResponse 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 (*ValidateJWTResponse) ValidateAll ¶
func (m *ValidateJWTResponse) ValidateAll() error
ValidateAll checks the field values on ValidateJWTResponse 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 ValidateJWTResponseMultiError, or nil if none found.
type ValidateJWTResponseMultiError ¶
type ValidateJWTResponseMultiError []error
ValidateJWTResponseMultiError is an error wrapping multiple validation errors returned by ValidateJWTResponse.ValidateAll() if the designated constraints aren't met.
func (ValidateJWTResponseMultiError) AllErrors ¶
func (m ValidateJWTResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ValidateJWTResponseMultiError) Error ¶
func (m ValidateJWTResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ValidateJWTResponseValidationError ¶
type ValidateJWTResponseValidationError struct {
// contains filtered or unexported fields
}
ValidateJWTResponseValidationError is the validation error returned by ValidateJWTResponse.Validate if the designated constraints aren't met.
func (ValidateJWTResponseValidationError) Cause ¶
func (e ValidateJWTResponseValidationError) Cause() error
Cause function returns cause value.
func (ValidateJWTResponseValidationError) Error ¶
func (e ValidateJWTResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ValidateJWTResponseValidationError) ErrorName ¶
func (e ValidateJWTResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ValidateJWTResponseValidationError) Field ¶
func (e ValidateJWTResponseValidationError) Field() string
Field function returns field value.
func (ValidateJWTResponseValidationError) Key ¶
func (e ValidateJWTResponseValidationError) Key() bool
Key function returns key value.
func (ValidateJWTResponseValidationError) Reason ¶
func (e ValidateJWTResponseValidationError) Reason() string
Reason function returns reason value.