Documentation ¶
Index ¶
- Variables
- type AuthMethod
- func (*AuthMethod) Descriptor() ([]byte, []int)deprecated
- func (x *AuthMethod) GetLoginType() model.LoginType
- func (m *AuthMethod) GetMethod() isAuthMethod_Method
- func (x *AuthMethod) GetOauthProvider() model.OauthProvider
- func (*AuthMethod) ProtoMessage()
- func (x *AuthMethod) ProtoReflect() protoreflect.Message
- func (x *AuthMethod) Reset()
- func (x *AuthMethod) String() string
- type AuthMethod_LoginType
- type AuthMethod_OauthProvider
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type DeviceInfo
- type GetByIdentifierRequest
- func (*GetByIdentifierRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIdentifierRequest) GetIdentifier() *model.UserIdentifier
- func (*GetByIdentifierRequest) ProtoMessage()
- func (x *GetByIdentifierRequest) ProtoReflect() protoreflect.Message
- func (x *GetByIdentifierRequest) Reset()
- func (x *GetByIdentifierRequest) String() string
- type GetByIdentifierResponse
- func (*GetByIdentifierResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIdentifierResponse) GetUser() *User
- func (*GetByIdentifierResponse) ProtoMessage()
- func (x *GetByIdentifierResponse) ProtoReflect() protoreflect.Message
- func (x *GetByIdentifierResponse) Reset()
- func (x *GetByIdentifierResponse) String() string
- type GetRequest
- type GetResponse
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetPagination() *model.Pagination
- func (x *ListRequest) GetSearch() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetTotal() uint64
- func (x *ListResponse) GetUsers() []*model.UserEntry
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type ListSessionsRequest
- func (*ListSessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionsRequest) GetPagination() *model.Pagination
- func (x *ListSessionsRequest) GetUserId() string
- func (*ListSessionsRequest) ProtoMessage()
- func (x *ListSessionsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSessionsRequest) Reset()
- func (x *ListSessionsRequest) String() string
- type ListSessionsResponse
- func (*ListSessionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionsResponse) GetSessions() []*SessionEntry
- func (x *ListSessionsResponse) GetTotal() uint64
- func (*ListSessionsResponse) ProtoMessage()
- func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSessionsResponse) Reset()
- func (x *ListSessionsResponse) String() string
- type Permissionship
- func (Permissionship) Descriptor() protoreflect.EnumDescriptor
- func (x Permissionship) Enum() *Permissionship
- func (Permissionship) EnumDescriptor() ([]byte, []int)deprecated
- func (x Permissionship) Number() protoreflect.EnumNumber
- func (x Permissionship) String() string
- func (Permissionship) Type() protoreflect.EnumType
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetCountry() string
- func (x *Profile) GetFirstName() string
- func (x *Profile) GetLastName() string
- func (x *Profile) GetPreferredLanguage() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetAuthMethod() *AuthMethod
- func (x *Session) GetCountry() string
- func (x *Session) GetCreatedAt() *timestamppb.Timestamp
- func (x *Session) GetDevice() DeviceInfo
- func (x *Session) GetExpiresAt() *timestamppb.Timestamp
- func (x *Session) GetInvalidatedAt() *timestamppb.Timestamp
- func (x *Session) GetIsInvalidated() bool
- func (x *Session) GetPostalCode() int32
- func (x *Session) GetRenewedAt() *timestamppb.Timestamp
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type SessionEntry
- func (*SessionEntry) Descriptor() ([]byte, []int)deprecated
- func (x *SessionEntry) GetSession() *Session
- func (x *SessionEntry) GetSessionId() string
- func (*SessionEntry) ProtoMessage()
- func (x *SessionEntry) ProtoReflect() protoreflect.Message
- func (x *SessionEntry) Reset()
- func (x *SessionEntry) String() string
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetDeleteMetadataKey() string
- func (x *Update) GetEmail() string
- func (m *Update) GetField() isUpdate_Field
- func (x *Update) GetHashedPassword() *model.HashingInstance
- func (x *Update) GetIsEmailVerified() bool
- func (x *Update) GetIsPhoneVerified() bool
- func (x *Update) GetPassword() string
- func (x *Update) GetPhoneNumber() string
- func (x *Update) GetProfile() *Profile
- func (x *Update) GetResetSessions() *Update_ResetSessions
- func (x *Update) GetSetMetadata() *model.Metadata
- func (x *Update) GetUsername() string
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetUpdates() []*Update
- func (x *UpdateRequest) GetUserId() string
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
- type Update_DeleteMetadataKey
- type Update_Email
- type Update_HashedPassword
- type Update_IsEmailVerified
- type Update_IsPhoneVerified
- type Update_Password
- type Update_PhoneNumber
- type Update_Profile
- type Update_ResetSessions
- type Update_ResetSessions_
- type Update_SetMetadata
- type Update_Username
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetIsEmailVerified() bool
- func (x *User) GetIsPhoneVerified() bool
- func (x *User) GetMetadata() map[string][]byte
- func (x *User) GetNewSessionsSince() *timestamppb.Timestamp
- func (x *User) GetProfile() *Profile
- func (x *User) GetRegisterInfo() *model.RegisterInfo
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (x *User) GetUserId() string
- func (x *User) GetUserInfo() *model.UserInfo
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type VerificationCode
- func (*VerificationCode) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationCode) GetAttempts() int32
- func (x *VerificationCode) GetCode() *model.HashingInstance
- func (x *VerificationCode) GetExpiresAt() *timestamppb.Timestamp
- func (x *VerificationCode) GetLastAttempt() *timestamppb.Timestamp
- func (x *VerificationCode) GetSentAt() *timestamppb.Timestamp
- func (x *VerificationCode) GetType() VerificationType
- func (x *VerificationCode) GetUserId() string
- func (*VerificationCode) ProtoMessage()
- func (x *VerificationCode) ProtoReflect() protoreflect.Message
- func (x *VerificationCode) Reset()
- func (x *VerificationCode) String() string
- type VerificationType
- func (VerificationType) Descriptor() protoreflect.EnumDescriptor
- func (x VerificationType) Enum() *VerificationType
- func (VerificationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x VerificationType) Number() protoreflect.EnumNumber
- func (x VerificationType) String() string
- func (VerificationType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( VerificationType_name = map[int32]string{ 0: "VERIFICATION_TYPE_UNSPECIFIED", 1: "VERIFICATION_TYPE_EMAIL", 2: "VERIFICATION_TYPE_TEXT", 3: "VERIFICATION_TYPE_RESET_PASSWORD", } VerificationType_value = map[string]int32{ "VERIFICATION_TYPE_UNSPECIFIED": 0, "VERIFICATION_TYPE_EMAIL": 1, "VERIFICATION_TYPE_TEXT": 2, "VERIFICATION_TYPE_RESET_PASSWORD": 3, } )
Enum value maps for VerificationType.
var ( DeviceInfo_name = map[int32]string{ 0: "DEVICE_INFO_UNSPECIFIED", 1: "DEVICE_INFO_IOS", 2: "DEVICE_INFO_MACOS", 3: "DEVICE_INFO_WINDOWS", 4: "DEVICE_INFO_WEB", 5: "DEVICE_INFO_LINUX", 6: "DEVICE_INFO_ANDROID", } DeviceInfo_value = map[string]int32{ "DEVICE_INFO_UNSPECIFIED": 0, "DEVICE_INFO_IOS": 1, "DEVICE_INFO_MACOS": 2, "DEVICE_INFO_WINDOWS": 3, "DEVICE_INFO_WEB": 4, "DEVICE_INFO_LINUX": 5, "DEVICE_INFO_ANDROID": 6, } )
Enum value maps for DeviceInfo.
var ( Permissionship_name = map[int32]string{ 0: "PERMISSIONSHIP_UNSPECIFIED", 1: "PERMISSIONSHIP_NO_PERMISSION", 2: "PERMISSIONSHIP_HAS_PERMISSION", 3: "PERMISSIONSHIP_CONDITIONAL_PERMISSION", } Permissionship_value = map[string]int32{ "PERMISSIONSHIP_UNSPECIFIED": 0, "PERMISSIONSHIP_NO_PERMISSION": 1, "PERMISSIONSHIP_HAS_PERMISSION": 2, "PERMISSIONSHIP_CONDITIONAL_PERMISSION": 3, } )
Enum value maps for Permissionship.
var File_api_v1_user_service_proto protoreflect.FileDescriptor
var File_api_v1_user_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthMethod ¶
type AuthMethod struct { // Types that are assignable to Method: // // *AuthMethod_LoginType // *AuthMethod_OauthProvider Method isAuthMethod_Method `protobuf_oneof:"method"` // contains filtered or unexported fields }
func (*AuthMethod) Descriptor
deprecated
func (*AuthMethod) Descriptor() ([]byte, []int)
Deprecated: Use AuthMethod.ProtoReflect.Descriptor instead.
func (*AuthMethod) GetLoginType ¶
func (x *AuthMethod) GetLoginType() model.LoginType
func (*AuthMethod) GetMethod ¶
func (m *AuthMethod) GetMethod() isAuthMethod_Method
func (*AuthMethod) GetOauthProvider ¶
func (x *AuthMethod) GetOauthProvider() model.OauthProvider
func (*AuthMethod) ProtoMessage ¶
func (*AuthMethod) ProtoMessage()
func (*AuthMethod) ProtoReflect ¶
func (x *AuthMethod) ProtoReflect() protoreflect.Message
func (*AuthMethod) Reset ¶
func (x *AuthMethod) Reset()
func (*AuthMethod) String ¶
func (x *AuthMethod) String() string
type AuthMethod_LoginType ¶
type AuthMethod_OauthProvider ¶
type AuthMethod_OauthProvider struct {
OauthProvider model.OauthProvider `protobuf:"varint,2,opt,name=oauth_provider,json=oauthProvider,proto3,enum=model.OauthProvider,oneof"`
}
type CreateRequest ¶
type CreateRequest struct { // Initial fields to set. Initializers []*Update `protobuf:"bytes,1,rep,name=initializers,proto3" json:"initializers,omitempty"` // contains filtered or unexported fields }
The request of a Users.Create RPC
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetInitializers ¶
func (x *CreateRequest) GetInitializers() []*Update
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { // The created user. User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
The response of a Users.Create RPC
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetUser ¶
func (x *CreateResponse) GetUser() *User
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { // The user identifier to fetch the user UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
The request of an Users.Delete RPC
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetUserId ¶
func (x *DeleteRequest) GetUserId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
The response of an Users.Delete RPC
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type DeviceInfo ¶
type DeviceInfo int32
const ( DeviceInfo_DEVICE_INFO_UNSPECIFIED DeviceInfo = 0 DeviceInfo_DEVICE_INFO_IOS DeviceInfo = 1 DeviceInfo_DEVICE_INFO_MACOS DeviceInfo = 2 DeviceInfo_DEVICE_INFO_WINDOWS DeviceInfo = 3 DeviceInfo_DEVICE_INFO_WEB DeviceInfo = 4 DeviceInfo_DEVICE_INFO_LINUX DeviceInfo = 5 DeviceInfo_DEVICE_INFO_ANDROID DeviceInfo = 6 )
func (DeviceInfo) Descriptor ¶
func (DeviceInfo) Descriptor() protoreflect.EnumDescriptor
func (DeviceInfo) Enum ¶
func (x DeviceInfo) Enum() *DeviceInfo
func (DeviceInfo) EnumDescriptor
deprecated
func (DeviceInfo) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeviceInfo.Descriptor instead.
func (DeviceInfo) Number ¶
func (x DeviceInfo) Number() protoreflect.EnumNumber
func (DeviceInfo) String ¶
func (x DeviceInfo) String() string
func (DeviceInfo) Type ¶
func (DeviceInfo) Type() protoreflect.EnumType
type GetByIdentifierRequest ¶
type GetByIdentifierRequest struct { Identifier *model.UserIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // contains filtered or unexported fields }
func (*GetByIdentifierRequest) Descriptor
deprecated
func (*GetByIdentifierRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdentifierRequest.ProtoReflect.Descriptor instead.
func (*GetByIdentifierRequest) GetIdentifier ¶
func (x *GetByIdentifierRequest) GetIdentifier() *model.UserIdentifier
func (*GetByIdentifierRequest) ProtoMessage ¶
func (*GetByIdentifierRequest) ProtoMessage()
func (*GetByIdentifierRequest) ProtoReflect ¶
func (x *GetByIdentifierRequest) ProtoReflect() protoreflect.Message
func (*GetByIdentifierRequest) Reset ¶
func (x *GetByIdentifierRequest) Reset()
func (*GetByIdentifierRequest) String ¶
func (x *GetByIdentifierRequest) String() string
type GetByIdentifierResponse ¶
type GetByIdentifierResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetByIdentifierResponse) Descriptor
deprecated
func (*GetByIdentifierResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdentifierResponse.ProtoReflect.Descriptor instead.
func (*GetByIdentifierResponse) GetUser ¶
func (x *GetByIdentifierResponse) GetUser() *User
func (*GetByIdentifierResponse) ProtoMessage ¶
func (*GetByIdentifierResponse) ProtoMessage()
func (*GetByIdentifierResponse) ProtoReflect ¶
func (x *GetByIdentifierResponse) ProtoReflect() protoreflect.Message
func (*GetByIdentifierResponse) Reset ¶
func (x *GetByIdentifierResponse) Reset()
func (*GetByIdentifierResponse) String ¶
func (x *GetByIdentifierResponse) String() string
type GetRequest ¶
type GetRequest struct { // The user identifier to fetch the user UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
The request of an Users.Get RPC
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetUserId ¶
func (x *GetRequest) GetUserId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
The response of an Users.Get RPC
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetUser ¶
func (x *GetResponse) GetUser() *User
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type ListRequest ¶
type ListRequest struct { Pagination *model.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
The request of a Users.List RPC
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetPagination ¶
func (x *ListRequest) GetPagination() *model.Pagination
func (*ListRequest) GetSearch ¶
func (x *ListRequest) GetSearch() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { // The users returned Users []*model.UserEntry `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // Return number of users in database Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
The response of a Users.List RPC
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() uint64
func (*ListResponse) GetUsers ¶
func (x *ListResponse) GetUsers() []*model.UserEntry
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type ListSessionsRequest ¶
type ListSessionsRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Pagination *model.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
The request of an Users.ListSessions RPC
func (*ListSessionsRequest) Descriptor
deprecated
func (*ListSessionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSessionsRequest.ProtoReflect.Descriptor instead.
func (*ListSessionsRequest) GetPagination ¶
func (x *ListSessionsRequest) GetPagination() *model.Pagination
func (*ListSessionsRequest) GetUserId ¶
func (x *ListSessionsRequest) GetUserId() string
func (*ListSessionsRequest) ProtoMessage ¶
func (*ListSessionsRequest) ProtoMessage()
func (*ListSessionsRequest) ProtoReflect ¶
func (x *ListSessionsRequest) ProtoReflect() protoreflect.Message
func (*ListSessionsRequest) Reset ¶
func (x *ListSessionsRequest) Reset()
func (*ListSessionsRequest) String ¶
func (x *ListSessionsRequest) String() string
type ListSessionsResponse ¶
type ListSessionsResponse struct { Sessions []*SessionEntry `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
The response of a Users.ListSessions RPC
func (*ListSessionsResponse) Descriptor
deprecated
func (*ListSessionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead.
func (*ListSessionsResponse) GetSessions ¶
func (x *ListSessionsResponse) GetSessions() []*SessionEntry
func (*ListSessionsResponse) GetTotal ¶
func (x *ListSessionsResponse) GetTotal() uint64
func (*ListSessionsResponse) ProtoMessage ¶
func (*ListSessionsResponse) ProtoMessage()
func (*ListSessionsResponse) ProtoReflect ¶
func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message
func (*ListSessionsResponse) Reset ¶
func (x *ListSessionsResponse) Reset()
func (*ListSessionsResponse) String ¶
func (x *ListSessionsResponse) String() string
type Permissionship ¶
type Permissionship int32
const ( Permissionship_PERMISSIONSHIP_UNSPECIFIED Permissionship = 0 Permissionship_PERMISSIONSHIP_NO_PERMISSION Permissionship = 1 Permissionship_PERMISSIONSHIP_HAS_PERMISSION Permissionship = 2 Permissionship_PERMISSIONSHIP_CONDITIONAL_PERMISSION Permissionship = 3 )
func (Permissionship) Descriptor ¶
func (Permissionship) Descriptor() protoreflect.EnumDescriptor
func (Permissionship) Enum ¶
func (x Permissionship) Enum() *Permissionship
func (Permissionship) EnumDescriptor
deprecated
func (Permissionship) EnumDescriptor() ([]byte, []int)
Deprecated: Use Permissionship.Descriptor instead.
func (Permissionship) Number ¶
func (x Permissionship) Number() protoreflect.EnumNumber
func (Permissionship) String ¶
func (x Permissionship) String() string
func (Permissionship) Type ¶
func (Permissionship) Type() protoreflect.EnumType
type Profile ¶
type Profile struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` PreferredLanguage string `protobuf:"bytes,3,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetCountry ¶
func (*Profile) GetFirstName ¶
func (*Profile) GetLastName ¶
func (*Profile) GetPreferredLanguage ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type Session ¶
type Session struct { AuthMethod *AuthMethod `protobuf:"bytes,1,opt,name=auth_method,json=authMethod,proto3" json:"auth_method,omitempty"` IsInvalidated bool `protobuf:"varint,2,opt,name=is_invalidated,json=isInvalidated,proto3" json:"is_invalidated,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` InvalidatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=invalidated_at,json=invalidatedAt,proto3" json:"invalidated_at,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` RenewedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=renewed_at,json=renewedAt,proto3" json:"renewed_at,omitempty"` Country string `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty"` PostalCode int32 `protobuf:"varint,8,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` Device DeviceInfo `protobuf:"varint,9,opt,name=device,proto3,enum=api.v1.user.DeviceInfo" json:"device,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
func (*Session) GetAuthMethod ¶
func (x *Session) GetAuthMethod() *AuthMethod
func (*Session) GetCountry ¶
func (*Session) GetCreatedAt ¶
func (x *Session) GetCreatedAt() *timestamppb.Timestamp
func (*Session) GetDevice ¶
func (x *Session) GetDevice() DeviceInfo
func (*Session) GetExpiresAt ¶
func (x *Session) GetExpiresAt() *timestamppb.Timestamp
func (*Session) GetInvalidatedAt ¶
func (x *Session) GetInvalidatedAt() *timestamppb.Timestamp
func (*Session) GetIsInvalidated ¶
func (*Session) GetPostalCode ¶
func (*Session) GetRenewedAt ¶
func (x *Session) GetRenewedAt() *timestamppb.Timestamp
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type SessionEntry ¶
type SessionEntry struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"` // contains filtered or unexported fields }
func (*SessionEntry) Descriptor
deprecated
func (*SessionEntry) Descriptor() ([]byte, []int)
Deprecated: Use SessionEntry.ProtoReflect.Descriptor instead.
func (*SessionEntry) GetSession ¶
func (x *SessionEntry) GetSession() *Session
func (*SessionEntry) GetSessionId ¶
func (x *SessionEntry) GetSessionId() string
func (*SessionEntry) ProtoMessage ¶
func (*SessionEntry) ProtoMessage()
func (*SessionEntry) ProtoReflect ¶
func (x *SessionEntry) ProtoReflect() protoreflect.Message
func (*SessionEntry) Reset ¶
func (x *SessionEntry) Reset()
func (*SessionEntry) String ¶
func (x *SessionEntry) String() string
type Update ¶
type Update struct { // Types that are assignable to Field: // // *Update_Email // *Update_Username // *Update_PhoneNumber // *Update_Password // *Update_Profile // *Update_IsEmailVerified // *Update_IsPhoneVerified // *Update_ResetSessions_ // *Update_SetMetadata // *Update_DeleteMetadataKey // *Update_HashedPassword Field isUpdate_Field `protobuf_oneof:"field"` // contains filtered or unexported fields }
func (*Update) Descriptor
deprecated
func (*Update) GetDeleteMetadataKey ¶
func (*Update) GetHashedPassword ¶
func (x *Update) GetHashedPassword() *model.HashingInstance
func (*Update) GetIsEmailVerified ¶
func (*Update) GetIsPhoneVerified ¶
func (*Update) GetPassword ¶
func (*Update) GetPhoneNumber ¶
func (*Update) GetProfile ¶
func (*Update) GetResetSessions ¶
func (x *Update) GetResetSessions() *Update_ResetSessions
func (*Update) GetSetMetadata ¶
func (*Update) GetUsername ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶
func (x *Update) ProtoReflect() protoreflect.Message
type UpdateRequest ¶
type UpdateRequest struct { // The user identifier to fetch the user UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Updates []*Update `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"` // contains filtered or unexported fields }
The request of a Users.Update RPC
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetUpdates ¶
func (x *UpdateRequest) GetUpdates() []*Update
func (*UpdateRequest) GetUserId ¶
func (x *UpdateRequest) GetUserId() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
The response of a Users.Update RPC
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
type Update_DeleteMetadataKey ¶
type Update_DeleteMetadataKey struct {
DeleteMetadataKey string `protobuf:"bytes,10,opt,name=delete_metadata_key,json=deleteMetadataKey,proto3,oneof"`
}
type Update_Email ¶
type Update_Email struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3,oneof"`
}
type Update_HashedPassword ¶
type Update_HashedPassword struct {
HashedPassword *model.HashingInstance `protobuf:"bytes,12,opt,name=hashed_password,json=hashedPassword,proto3,oneof"`
}
type Update_IsEmailVerified ¶
type Update_IsEmailVerified struct {
IsEmailVerified bool `protobuf:"varint,6,opt,name=is_email_verified,json=isEmailVerified,proto3,oneof"`
}
type Update_IsPhoneVerified ¶
type Update_IsPhoneVerified struct {
IsPhoneVerified bool `protobuf:"varint,7,opt,name=is_phone_verified,json=isPhoneVerified,proto3,oneof"`
}
type Update_Password ¶
type Update_Password struct {
Password string `protobuf:"bytes,4,opt,name=password,proto3,oneof"`
}
type Update_PhoneNumber ¶
type Update_PhoneNumber struct {
PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3,oneof"`
}
type Update_Profile ¶
type Update_Profile struct {
Profile *Profile `protobuf:"bytes,5,opt,name=profile,proto3,oneof"`
}
type Update_ResetSessions ¶
type Update_ResetSessions struct {
// contains filtered or unexported fields
}
func (*Update_ResetSessions) Descriptor
deprecated
func (*Update_ResetSessions) Descriptor() ([]byte, []int)
Deprecated: Use Update_ResetSessions.ProtoReflect.Descriptor instead.
func (*Update_ResetSessions) ProtoMessage ¶
func (*Update_ResetSessions) ProtoMessage()
func (*Update_ResetSessions) ProtoReflect ¶
func (x *Update_ResetSessions) ProtoReflect() protoreflect.Message
func (*Update_ResetSessions) Reset ¶
func (x *Update_ResetSessions) Reset()
func (*Update_ResetSessions) String ¶
func (x *Update_ResetSessions) String() string
type Update_ResetSessions_ ¶
type Update_ResetSessions_ struct {
ResetSessions *Update_ResetSessions `protobuf:"bytes,8,opt,name=reset_sessions,json=resetSessions,proto3,oneof"`
}
type Update_SetMetadata ¶
type Update_Username ¶
type Update_Username struct {
Username string `protobuf:"bytes,2,opt,name=username,proto3,oneof"`
}
type User ¶
type User struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` UserInfo *model.UserInfo `protobuf:"bytes,2,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` Profile *Profile `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` RegisterInfo *model.RegisterInfo `protobuf:"bytes,5,opt,name=register_info,json=registerInfo,proto3" json:"register_info,omitempty"` IsPhoneVerified bool `protobuf:"varint,6,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` IsEmailVerified bool `protobuf:"varint,7,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` NewSessionsSince *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=new_sessions_since,json=newSessionsSince,proto3" json:"new_sessions_since,omitempty"` Metadata map[string][]byte `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetIsEmailVerified ¶
func (*User) GetIsPhoneVerified ¶
func (*User) GetMetadata ¶
func (*User) GetNewSessionsSince ¶
func (x *User) GetNewSessionsSince() *timestamppb.Timestamp
func (*User) GetProfile ¶
func (*User) GetRegisterInfo ¶
func (x *User) GetRegisterInfo() *model.RegisterInfo
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) GetUserInfo ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type VerificationCode ¶
type VerificationCode struct { Code *model.HashingInstance `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` SentAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` Attempts int32 `protobuf:"varint,4,opt,name=attempts,proto3" json:"attempts,omitempty"` LastAttempt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_attempt,json=lastAttempt,proto3" json:"last_attempt,omitempty"` Type VerificationType `protobuf:"varint,6,opt,name=type,proto3,enum=api.v1.user.VerificationType" json:"type,omitempty"` UserId string `protobuf:"bytes,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*VerificationCode) Descriptor
deprecated
func (*VerificationCode) Descriptor() ([]byte, []int)
Deprecated: Use VerificationCode.ProtoReflect.Descriptor instead.
func (*VerificationCode) GetAttempts ¶
func (x *VerificationCode) GetAttempts() int32
func (*VerificationCode) GetCode ¶
func (x *VerificationCode) GetCode() *model.HashingInstance
func (*VerificationCode) GetExpiresAt ¶
func (x *VerificationCode) GetExpiresAt() *timestamppb.Timestamp
func (*VerificationCode) GetLastAttempt ¶
func (x *VerificationCode) GetLastAttempt() *timestamppb.Timestamp
func (*VerificationCode) GetSentAt ¶
func (x *VerificationCode) GetSentAt() *timestamppb.Timestamp
func (*VerificationCode) GetType ¶
func (x *VerificationCode) GetType() VerificationType
func (*VerificationCode) GetUserId ¶
func (x *VerificationCode) GetUserId() string
func (*VerificationCode) ProtoMessage ¶
func (*VerificationCode) ProtoMessage()
func (*VerificationCode) ProtoReflect ¶
func (x *VerificationCode) ProtoReflect() protoreflect.Message
func (*VerificationCode) Reset ¶
func (x *VerificationCode) Reset()
func (*VerificationCode) String ¶
func (x *VerificationCode) String() string
type VerificationType ¶
type VerificationType int32
const ( VerificationType_VERIFICATION_TYPE_UNSPECIFIED VerificationType = 0 VerificationType_VERIFICATION_TYPE_EMAIL VerificationType = 1 VerificationType_VERIFICATION_TYPE_TEXT VerificationType = 2 VerificationType_VERIFICATION_TYPE_RESET_PASSWORD VerificationType = 3 )
func (VerificationType) Descriptor ¶
func (VerificationType) Descriptor() protoreflect.EnumDescriptor
func (VerificationType) Enum ¶
func (x VerificationType) Enum() *VerificationType
func (VerificationType) EnumDescriptor
deprecated
func (VerificationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use VerificationType.Descriptor instead.
func (VerificationType) Number ¶
func (x VerificationType) Number() protoreflect.EnumNumber
func (VerificationType) String ¶
func (x VerificationType) String() string
func (VerificationType) Type ¶
func (VerificationType) Type() protoreflect.EnumType