Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserStorageServer(s grpc.ServiceRegistrar, srv UserStorageServer)
- type AddUserWithFederatedIDRequest
- func (*AddUserWithFederatedIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserWithFederatedIDRequest) GetId() string
- func (x *AddUserWithFederatedIDRequest) GetProvider() string
- func (x *AddUserWithFederatedIDRequest) GetRole() string
- func (x *AddUserWithFederatedIDRequest) GetUser() *User
- func (*AddUserWithFederatedIDRequest) ProtoMessage()
- func (x *AddUserWithFederatedIDRequest) ProtoReflect() protoreflect.Message
- func (x *AddUserWithFederatedIDRequest) Reset()
- func (x *AddUserWithFederatedIDRequest) String() string
- type AddUserWithPasswordRequest
- func (*AddUserWithPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserWithPasswordRequest) GetIsAnonymous() bool
- func (x *AddUserWithPasswordRequest) GetPassword() string
- func (x *AddUserWithPasswordRequest) GetRole() string
- func (x *AddUserWithPasswordRequest) GetUser() *User
- func (*AddUserWithPasswordRequest) ProtoMessage()
- func (x *AddUserWithPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *AddUserWithPasswordRequest) Reset()
- func (x *AddUserWithPasswordRequest) String() string
- type AllDeviceTokensRequest
- func (*AllDeviceTokensRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AllDeviceTokensRequest) GetId() string
- func (*AllDeviceTokensRequest) ProtoMessage()
- func (x *AllDeviceTokensRequest) ProtoReflect() protoreflect.Message
- func (x *AllDeviceTokensRequest) Reset()
- func (x *AllDeviceTokensRequest) String() string
- type AllDeviceTokensResponse
- func (*AllDeviceTokensResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AllDeviceTokensResponse) GetTokens() []string
- func (*AllDeviceTokensResponse) ProtoMessage()
- func (x *AllDeviceTokensResponse) ProtoReflect() protoreflect.Message
- func (x *AllDeviceTokensResponse) Reset()
- func (x *AllDeviceTokensResponse) String() string
- type AttachDeviceTokenRequest
- func (*AttachDeviceTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AttachDeviceTokenRequest) GetId() string
- func (x *AttachDeviceTokenRequest) GetToken() string
- func (*AttachDeviceTokenRequest) ProtoMessage()
- func (x *AttachDeviceTokenRequest) ProtoReflect() protoreflect.Message
- func (x *AttachDeviceTokenRequest) Reset()
- func (x *AttachDeviceTokenRequest) String() string
- type CheckPasswordRequest
- func (*CheckPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckPasswordRequest) GetId() string
- func (x *CheckPasswordRequest) GetPassword() string
- func (*CheckPasswordRequest) ProtoMessage()
- func (x *CheckPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *CheckPasswordRequest) Reset()
- func (x *CheckPasswordRequest) String() string
- type CloseRequest
- type DeleteUserRequest
- type DetachDeviceTokenRequest
- func (*DetachDeviceTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DetachDeviceTokenRequest) GetToken() string
- func (*DetachDeviceTokenRequest) ProtoMessage()
- func (x *DetachDeviceTokenRequest) ProtoReflect() protoreflect.Message
- func (x *DetachDeviceTokenRequest) Reset()
- func (x *DetachDeviceTokenRequest) String() string
- type Empty
- type Error
- type FetchUsersRequest
- func (*FetchUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchUsersRequest) GetLimit() int32
- func (x *FetchUsersRequest) GetSearch() string
- func (x *FetchUsersRequest) GetSkip() int32
- func (*FetchUsersRequest) ProtoMessage()
- func (x *FetchUsersRequest) ProtoReflect() protoreflect.Message
- func (x *FetchUsersRequest) Reset()
- func (x *FetchUsersRequest) String() string
- type FetchUsersResponse
- func (*FetchUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchUsersResponse) GetLength() int32
- func (x *FetchUsersResponse) GetUsers() []*User
- func (*FetchUsersResponse) ProtoMessage()
- func (x *FetchUsersResponse) ProtoReflect() protoreflect.Message
- func (x *FetchUsersResponse) Reset()
- func (x *FetchUsersResponse) String() string
- type ImportJSONRequest
- func (*ImportJSONRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportJSONRequest) GetClearOldData() bool
- func (x *ImportJSONRequest) GetData() []byte
- func (*ImportJSONRequest) ProtoMessage()
- func (x *ImportJSONRequest) ProtoReflect() protoreflect.Message
- func (x *ImportJSONRequest) Reset()
- func (x *ImportJSONRequest) String() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetId() string
- func (x *ResetPasswordRequest) GetPassword() string
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- type UnimplementedUserStorageServer
- func (UnimplementedUserStorageServer) AddUserWithFederatedID(context.Context, *AddUserWithFederatedIDRequest) (*User, error)
- func (UnimplementedUserStorageServer) AddUserWithPassword(context.Context, *AddUserWithPasswordRequest) (*User, error)
- func (UnimplementedUserStorageServer) AllDeviceTokens(context.Context, *AllDeviceTokensRequest) (*AllDeviceTokensResponse, error)
- func (UnimplementedUserStorageServer) AttachDeviceToken(context.Context, *AttachDeviceTokenRequest) (*Empty, error)
- func (UnimplementedUserStorageServer) CheckPassword(context.Context, *CheckPasswordRequest) (*Empty, error)
- func (UnimplementedUserStorageServer) Close(context.Context, *CloseRequest) (*Empty, error)
- func (UnimplementedUserStorageServer) DeleteUser(context.Context, *DeleteUserRequest) (*Empty, error)
- func (UnimplementedUserStorageServer) DetachDeviceToken(context.Context, *DetachDeviceTokenRequest) (*Empty, error)
- func (UnimplementedUserStorageServer) FetchUsers(context.Context, *FetchUsersRequest) (*FetchUsersResponse, error)
- func (UnimplementedUserStorageServer) ImportJSON(context.Context, *ImportJSONRequest) (*Empty, error)
- func (UnimplementedUserStorageServer) ResetPassword(context.Context, *ResetPasswordRequest) (*Empty, error)
- func (UnimplementedUserStorageServer) UpdateLoginMetadata(context.Context, *UpdateLoginMetadataRequest) (*Empty, error)
- func (UnimplementedUserStorageServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
- func (UnimplementedUserStorageServer) UserByEmail(context.Context, *UserByEmailRequest) (*User, error)
- func (UnimplementedUserStorageServer) UserByFederatedID(context.Context, *UserByFederatedIDRequest) (*User, error)
- func (UnimplementedUserStorageServer) UserByID(context.Context, *UserByIDRequest) (*User, error)
- func (UnimplementedUserStorageServer) UserByPhone(context.Context, *UserByPhoneRequest) (*User, error)
- func (UnimplementedUserStorageServer) UserByUsername(context.Context, *UserByUsernameRequest) (*User, error)
- type UnsafeUserStorageServer
- type UpdateLoginMetadataRequest
- func (*UpdateLoginMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLoginMetadataRequest) GetId() string
- func (*UpdateLoginMetadataRequest) ProtoMessage()
- func (x *UpdateLoginMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateLoginMetadataRequest) Reset()
- func (x *UpdateLoginMetadataRequest) String() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetId() string
- func (x *UpdateUserRequest) GetUser() *User
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAccessRole() string
- func (x *User) GetActive() bool
- func (x *User) GetAnonymous() bool
- func (x *User) GetEmail() string
- func (x *User) GetFederatedIds() []string
- func (x *User) GetFullName() string
- func (x *User) GetId() string
- func (x *User) GetLatestLoginTime() int64
- func (x *User) GetNumOfLogins() int32
- func (x *User) GetPhone() string
- func (x *User) GetPswd() string
- func (x *User) GetScopes() []string
- func (x *User) GetTfaInfo() *User_TFAInfo
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserByEmailRequest
- func (*UserByEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserByEmailRequest) GetEmail() string
- func (*UserByEmailRequest) ProtoMessage()
- func (x *UserByEmailRequest) ProtoReflect() protoreflect.Message
- func (x *UserByEmailRequest) Reset()
- func (x *UserByEmailRequest) String() string
- type UserByFederatedIDRequest
- func (*UserByFederatedIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserByFederatedIDRequest) GetId() string
- func (x *UserByFederatedIDRequest) GetProvider() string
- func (*UserByFederatedIDRequest) ProtoMessage()
- func (x *UserByFederatedIDRequest) ProtoReflect() protoreflect.Message
- func (x *UserByFederatedIDRequest) Reset()
- func (x *UserByFederatedIDRequest) String() string
- type UserByIDRequest
- type UserByPhoneRequest
- func (*UserByPhoneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserByPhoneRequest) GetPhone() string
- func (*UserByPhoneRequest) ProtoMessage()
- func (x *UserByPhoneRequest) ProtoReflect() protoreflect.Message
- func (x *UserByPhoneRequest) Reset()
- func (x *UserByPhoneRequest) String() string
- type UserByUsernameRequest
- func (*UserByUsernameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserByUsernameRequest) GetUsername() string
- func (*UserByUsernameRequest) ProtoMessage()
- func (x *UserByUsernameRequest) ProtoReflect() protoreflect.Message
- func (x *UserByUsernameRequest) Reset()
- func (x *UserByUsernameRequest) String() string
- type UserStorageClient
- type UserStorageServer
- type User_TFAInfo
- func (*User_TFAInfo) Descriptor() ([]byte, []int)deprecated
- func (x *User_TFAInfo) GetHotpCounter() int32
- func (x *User_TFAInfo) GetHotpExpiredAt() *timestamppb.Timestamp
- func (x *User_TFAInfo) GetIsEnabled() bool
- func (x *User_TFAInfo) GetSecret() string
- func (*User_TFAInfo) ProtoMessage()
- func (x *User_TFAInfo) ProtoReflect() protoreflect.Message
- func (x *User_TFAInfo) Reset()
- func (x *User_TFAInfo) String() string
Constants ¶
const ( UserStorage_UserByPhone_FullMethodName = "/proto.UserStorage/UserByPhone" UserStorage_AddUserWithPassword_FullMethodName = "/proto.UserStorage/AddUserWithPassword" UserStorage_UserByID_FullMethodName = "/proto.UserStorage/UserByID" UserStorage_UserByEmail_FullMethodName = "/proto.UserStorage/UserByEmail" UserStorage_UserByUsername_FullMethodName = "/proto.UserStorage/UserByUsername" UserStorage_UserByFederatedID_FullMethodName = "/proto.UserStorage/UserByFederatedID" UserStorage_AddUserWithFederatedID_FullMethodName = "/proto.UserStorage/AddUserWithFederatedID" UserStorage_UpdateUser_FullMethodName = "/proto.UserStorage/UpdateUser" UserStorage_ResetPassword_FullMethodName = "/proto.UserStorage/ResetPassword" UserStorage_CheckPassword_FullMethodName = "/proto.UserStorage/CheckPassword" UserStorage_DeleteUser_FullMethodName = "/proto.UserStorage/DeleteUser" UserStorage_FetchUsers_FullMethodName = "/proto.UserStorage/FetchUsers" UserStorage_UpdateLoginMetadata_FullMethodName = "/proto.UserStorage/UpdateLoginMetadata" UserStorage_AttachDeviceToken_FullMethodName = "/proto.UserStorage/AttachDeviceToken" UserStorage_DetachDeviceToken_FullMethodName = "/proto.UserStorage/DetachDeviceToken" UserStorage_AllDeviceTokens_FullMethodName = "/proto.UserStorage/AllDeviceTokens" UserStorage_ImportJSON_FullMethodName = "/proto.UserStorage/ImportJSON" UserStorage_Close_FullMethodName = "/proto.UserStorage/Close" )
Variables ¶
var File_storage_grpc_proto_user_proto protoreflect.FileDescriptor
var UserStorage_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.UserStorage", HandlerType: (*UserStorageServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UserByPhone", Handler: _UserStorage_UserByPhone_Handler, }, { MethodName: "AddUserWithPassword", Handler: _UserStorage_AddUserWithPassword_Handler, }, { MethodName: "UserByID", Handler: _UserStorage_UserByID_Handler, }, { MethodName: "UserByEmail", Handler: _UserStorage_UserByEmail_Handler, }, { MethodName: "UserByUsername", Handler: _UserStorage_UserByUsername_Handler, }, { MethodName: "UserByFederatedID", Handler: _UserStorage_UserByFederatedID_Handler, }, { MethodName: "AddUserWithFederatedID", Handler: _UserStorage_AddUserWithFederatedID_Handler, }, { MethodName: "UpdateUser", Handler: _UserStorage_UpdateUser_Handler, }, { MethodName: "ResetPassword", Handler: _UserStorage_ResetPassword_Handler, }, { MethodName: "CheckPassword", Handler: _UserStorage_CheckPassword_Handler, }, { MethodName: "DeleteUser", Handler: _UserStorage_DeleteUser_Handler, }, { MethodName: "FetchUsers", Handler: _UserStorage_FetchUsers_Handler, }, { MethodName: "UpdateLoginMetadata", Handler: _UserStorage_UpdateLoginMetadata_Handler, }, { MethodName: "AttachDeviceToken", Handler: _UserStorage_AttachDeviceToken_Handler, }, { MethodName: "DetachDeviceToken", Handler: _UserStorage_DetachDeviceToken_Handler, }, { MethodName: "AllDeviceTokens", Handler: _UserStorage_AllDeviceTokens_Handler, }, { MethodName: "ImportJSON", Handler: _UserStorage_ImportJSON_Handler, }, { MethodName: "Close", Handler: _UserStorage_Close_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "storage/grpc/proto/user.proto", }
UserStorage_ServiceDesc is the grpc.ServiceDesc for UserStorage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserStorageServer ¶
func RegisterUserStorageServer(s grpc.ServiceRegistrar, srv UserStorageServer)
Types ¶
type AddUserWithFederatedIDRequest ¶
type AddUserWithFederatedIDRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*AddUserWithFederatedIDRequest) Descriptor
deprecated
func (*AddUserWithFederatedIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddUserWithFederatedIDRequest.ProtoReflect.Descriptor instead.
func (*AddUserWithFederatedIDRequest) GetId ¶
func (x *AddUserWithFederatedIDRequest) GetId() string
func (*AddUserWithFederatedIDRequest) GetProvider ¶
func (x *AddUserWithFederatedIDRequest) GetProvider() string
func (*AddUserWithFederatedIDRequest) GetRole ¶
func (x *AddUserWithFederatedIDRequest) GetRole() string
func (*AddUserWithFederatedIDRequest) GetUser ¶
func (x *AddUserWithFederatedIDRequest) GetUser() *User
func (*AddUserWithFederatedIDRequest) ProtoMessage ¶
func (*AddUserWithFederatedIDRequest) ProtoMessage()
func (*AddUserWithFederatedIDRequest) ProtoReflect ¶
func (x *AddUserWithFederatedIDRequest) ProtoReflect() protoreflect.Message
func (*AddUserWithFederatedIDRequest) Reset ¶
func (x *AddUserWithFederatedIDRequest) Reset()
func (*AddUserWithFederatedIDRequest) String ¶
func (x *AddUserWithFederatedIDRequest) String() string
type AddUserWithPasswordRequest ¶
type AddUserWithPasswordRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` IsAnonymous bool `protobuf:"varint,4,opt,name=is_anonymous,json=isAnonymous,proto3" json:"is_anonymous,omitempty"` // contains filtered or unexported fields }
func (*AddUserWithPasswordRequest) Descriptor
deprecated
func (*AddUserWithPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddUserWithPasswordRequest.ProtoReflect.Descriptor instead.
func (*AddUserWithPasswordRequest) GetIsAnonymous ¶
func (x *AddUserWithPasswordRequest) GetIsAnonymous() bool
func (*AddUserWithPasswordRequest) GetPassword ¶
func (x *AddUserWithPasswordRequest) GetPassword() string
func (*AddUserWithPasswordRequest) GetRole ¶
func (x *AddUserWithPasswordRequest) GetRole() string
func (*AddUserWithPasswordRequest) GetUser ¶
func (x *AddUserWithPasswordRequest) GetUser() *User
func (*AddUserWithPasswordRequest) ProtoMessage ¶
func (*AddUserWithPasswordRequest) ProtoMessage()
func (*AddUserWithPasswordRequest) ProtoReflect ¶
func (x *AddUserWithPasswordRequest) ProtoReflect() protoreflect.Message
func (*AddUserWithPasswordRequest) Reset ¶
func (x *AddUserWithPasswordRequest) Reset()
func (*AddUserWithPasswordRequest) String ¶
func (x *AddUserWithPasswordRequest) String() string
type AllDeviceTokensRequest ¶
type AllDeviceTokensRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AllDeviceTokensRequest) Descriptor
deprecated
func (*AllDeviceTokensRequest) Descriptor() ([]byte, []int)
Deprecated: Use AllDeviceTokensRequest.ProtoReflect.Descriptor instead.
func (*AllDeviceTokensRequest) GetId ¶
func (x *AllDeviceTokensRequest) GetId() string
func (*AllDeviceTokensRequest) ProtoMessage ¶
func (*AllDeviceTokensRequest) ProtoMessage()
func (*AllDeviceTokensRequest) ProtoReflect ¶
func (x *AllDeviceTokensRequest) ProtoReflect() protoreflect.Message
func (*AllDeviceTokensRequest) Reset ¶
func (x *AllDeviceTokensRequest) Reset()
func (*AllDeviceTokensRequest) String ¶
func (x *AllDeviceTokensRequest) String() string
type AllDeviceTokensResponse ¶
type AllDeviceTokensResponse struct { Tokens []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` // contains filtered or unexported fields }
func (*AllDeviceTokensResponse) Descriptor
deprecated
func (*AllDeviceTokensResponse) Descriptor() ([]byte, []int)
Deprecated: Use AllDeviceTokensResponse.ProtoReflect.Descriptor instead.
func (*AllDeviceTokensResponse) GetTokens ¶
func (x *AllDeviceTokensResponse) GetTokens() []string
func (*AllDeviceTokensResponse) ProtoMessage ¶
func (*AllDeviceTokensResponse) ProtoMessage()
func (*AllDeviceTokensResponse) ProtoReflect ¶
func (x *AllDeviceTokensResponse) ProtoReflect() protoreflect.Message
func (*AllDeviceTokensResponse) Reset ¶
func (x *AllDeviceTokensResponse) Reset()
func (*AllDeviceTokensResponse) String ¶
func (x *AllDeviceTokensResponse) String() string
type AttachDeviceTokenRequest ¶
type AttachDeviceTokenRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AttachDeviceTokenRequest) Descriptor
deprecated
func (*AttachDeviceTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use AttachDeviceTokenRequest.ProtoReflect.Descriptor instead.
func (*AttachDeviceTokenRequest) GetId ¶
func (x *AttachDeviceTokenRequest) GetId() string
func (*AttachDeviceTokenRequest) GetToken ¶
func (x *AttachDeviceTokenRequest) GetToken() string
func (*AttachDeviceTokenRequest) ProtoMessage ¶
func (*AttachDeviceTokenRequest) ProtoMessage()
func (*AttachDeviceTokenRequest) ProtoReflect ¶
func (x *AttachDeviceTokenRequest) ProtoReflect() protoreflect.Message
func (*AttachDeviceTokenRequest) Reset ¶
func (x *AttachDeviceTokenRequest) Reset()
func (*AttachDeviceTokenRequest) String ¶
func (x *AttachDeviceTokenRequest) String() string
type CheckPasswordRequest ¶
type CheckPasswordRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CheckPasswordRequest) Descriptor
deprecated
func (*CheckPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckPasswordRequest.ProtoReflect.Descriptor instead.
func (*CheckPasswordRequest) GetId ¶
func (x *CheckPasswordRequest) GetId() string
func (*CheckPasswordRequest) GetPassword ¶
func (x *CheckPasswordRequest) GetPassword() string
func (*CheckPasswordRequest) ProtoMessage ¶
func (*CheckPasswordRequest) ProtoMessage()
func (*CheckPasswordRequest) ProtoReflect ¶
func (x *CheckPasswordRequest) ProtoReflect() protoreflect.Message
func (*CheckPasswordRequest) Reset ¶
func (x *CheckPasswordRequest) Reset()
func (*CheckPasswordRequest) String ¶
func (x *CheckPasswordRequest) String() string
type CloseRequest ¶
type CloseRequest struct {
// contains filtered or unexported fields
}
func (*CloseRequest) Descriptor
deprecated
func (*CloseRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseRequest.ProtoReflect.Descriptor instead.
func (*CloseRequest) ProtoMessage ¶
func (*CloseRequest) ProtoMessage()
func (*CloseRequest) ProtoReflect ¶
func (x *CloseRequest) ProtoReflect() protoreflect.Message
func (*CloseRequest) Reset ¶
func (x *CloseRequest) Reset()
func (*CloseRequest) String ¶
func (x *CloseRequest) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetId ¶
func (x *DeleteUserRequest) GetId() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type DetachDeviceTokenRequest ¶
type DetachDeviceTokenRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*DetachDeviceTokenRequest) Descriptor
deprecated
func (*DetachDeviceTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use DetachDeviceTokenRequest.ProtoReflect.Descriptor instead.
func (*DetachDeviceTokenRequest) GetToken ¶
func (x *DetachDeviceTokenRequest) GetToken() string
func (*DetachDeviceTokenRequest) ProtoMessage ¶
func (*DetachDeviceTokenRequest) ProtoMessage()
func (*DetachDeviceTokenRequest) ProtoReflect ¶
func (x *DetachDeviceTokenRequest) ProtoReflect() protoreflect.Message
func (*DetachDeviceTokenRequest) Reset ¶
func (x *DetachDeviceTokenRequest) Reset()
func (*DetachDeviceTokenRequest) String ¶
func (x *DetachDeviceTokenRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Error ¶
type Error struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type FetchUsersRequest ¶
type FetchUsersRequest struct { Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` Skip int32 `protobuf:"varint,2,opt,name=skip,proto3" json:"skip,omitempty"` Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*FetchUsersRequest) Descriptor
deprecated
func (*FetchUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchUsersRequest.ProtoReflect.Descriptor instead.
func (*FetchUsersRequest) GetLimit ¶
func (x *FetchUsersRequest) GetLimit() int32
func (*FetchUsersRequest) GetSearch ¶
func (x *FetchUsersRequest) GetSearch() string
func (*FetchUsersRequest) GetSkip ¶
func (x *FetchUsersRequest) GetSkip() int32
func (*FetchUsersRequest) ProtoMessage ¶
func (*FetchUsersRequest) ProtoMessage()
func (*FetchUsersRequest) ProtoReflect ¶
func (x *FetchUsersRequest) ProtoReflect() protoreflect.Message
func (*FetchUsersRequest) Reset ¶
func (x *FetchUsersRequest) Reset()
func (*FetchUsersRequest) String ¶
func (x *FetchUsersRequest) String() string
type FetchUsersResponse ¶
type FetchUsersResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` Length int32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` // contains filtered or unexported fields }
func (*FetchUsersResponse) Descriptor
deprecated
func (*FetchUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchUsersResponse.ProtoReflect.Descriptor instead.
func (*FetchUsersResponse) GetLength ¶
func (x *FetchUsersResponse) GetLength() int32
func (*FetchUsersResponse) GetUsers ¶
func (x *FetchUsersResponse) GetUsers() []*User
func (*FetchUsersResponse) ProtoMessage ¶
func (*FetchUsersResponse) ProtoMessage()
func (*FetchUsersResponse) ProtoReflect ¶
func (x *FetchUsersResponse) ProtoReflect() protoreflect.Message
func (*FetchUsersResponse) Reset ¶
func (x *FetchUsersResponse) Reset()
func (*FetchUsersResponse) String ¶
func (x *FetchUsersResponse) String() string
type ImportJSONRequest ¶
type ImportJSONRequest struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` ClearOldData bool `protobuf:"varint,2,opt,name=clearOldData,proto3" json:"clearOldData,omitempty"` // contains filtered or unexported fields }
func (*ImportJSONRequest) Descriptor
deprecated
func (*ImportJSONRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportJSONRequest.ProtoReflect.Descriptor instead.
func (*ImportJSONRequest) GetClearOldData ¶ added in v2.3.2
func (x *ImportJSONRequest) GetClearOldData() bool
func (*ImportJSONRequest) GetData ¶
func (x *ImportJSONRequest) GetData() []byte
func (*ImportJSONRequest) ProtoMessage ¶
func (*ImportJSONRequest) ProtoMessage()
func (*ImportJSONRequest) ProtoReflect ¶
func (x *ImportJSONRequest) ProtoReflect() protoreflect.Message
func (*ImportJSONRequest) Reset ¶
func (x *ImportJSONRequest) Reset()
func (*ImportJSONRequest) String ¶
func (x *ImportJSONRequest) String() string
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*ResetPasswordRequest) Descriptor
deprecated
func (*ResetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) GetId ¶
func (x *ResetPasswordRequest) GetId() string
func (*ResetPasswordRequest) GetPassword ¶
func (x *ResetPasswordRequest) GetPassword() string
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
type UnimplementedUserStorageServer ¶
type UnimplementedUserStorageServer struct { }
UnimplementedUserStorageServer must be embedded to have forward compatible implementations.
func (UnimplementedUserStorageServer) AddUserWithFederatedID ¶
func (UnimplementedUserStorageServer) AddUserWithFederatedID(context.Context, *AddUserWithFederatedIDRequest) (*User, error)
func (UnimplementedUserStorageServer) AddUserWithPassword ¶
func (UnimplementedUserStorageServer) AddUserWithPassword(context.Context, *AddUserWithPasswordRequest) (*User, error)
func (UnimplementedUserStorageServer) AllDeviceTokens ¶
func (UnimplementedUserStorageServer) AllDeviceTokens(context.Context, *AllDeviceTokensRequest) (*AllDeviceTokensResponse, error)
func (UnimplementedUserStorageServer) AttachDeviceToken ¶
func (UnimplementedUserStorageServer) AttachDeviceToken(context.Context, *AttachDeviceTokenRequest) (*Empty, error)
func (UnimplementedUserStorageServer) CheckPassword ¶
func (UnimplementedUserStorageServer) CheckPassword(context.Context, *CheckPasswordRequest) (*Empty, error)
func (UnimplementedUserStorageServer) Close ¶
func (UnimplementedUserStorageServer) Close(context.Context, *CloseRequest) (*Empty, error)
func (UnimplementedUserStorageServer) DeleteUser ¶
func (UnimplementedUserStorageServer) DeleteUser(context.Context, *DeleteUserRequest) (*Empty, error)
func (UnimplementedUserStorageServer) DetachDeviceToken ¶
func (UnimplementedUserStorageServer) DetachDeviceToken(context.Context, *DetachDeviceTokenRequest) (*Empty, error)
func (UnimplementedUserStorageServer) FetchUsers ¶
func (UnimplementedUserStorageServer) FetchUsers(context.Context, *FetchUsersRequest) (*FetchUsersResponse, error)
func (UnimplementedUserStorageServer) ImportJSON ¶
func (UnimplementedUserStorageServer) ImportJSON(context.Context, *ImportJSONRequest) (*Empty, error)
func (UnimplementedUserStorageServer) ResetPassword ¶
func (UnimplementedUserStorageServer) ResetPassword(context.Context, *ResetPasswordRequest) (*Empty, error)
func (UnimplementedUserStorageServer) UpdateLoginMetadata ¶
func (UnimplementedUserStorageServer) UpdateLoginMetadata(context.Context, *UpdateLoginMetadataRequest) (*Empty, error)
func (UnimplementedUserStorageServer) UpdateUser ¶
func (UnimplementedUserStorageServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
func (UnimplementedUserStorageServer) UserByEmail ¶
func (UnimplementedUserStorageServer) UserByEmail(context.Context, *UserByEmailRequest) (*User, error)
func (UnimplementedUserStorageServer) UserByFederatedID ¶
func (UnimplementedUserStorageServer) UserByFederatedID(context.Context, *UserByFederatedIDRequest) (*User, error)
func (UnimplementedUserStorageServer) UserByID ¶
func (UnimplementedUserStorageServer) UserByID(context.Context, *UserByIDRequest) (*User, error)
func (UnimplementedUserStorageServer) UserByPhone ¶
func (UnimplementedUserStorageServer) UserByPhone(context.Context, *UserByPhoneRequest) (*User, error)
func (UnimplementedUserStorageServer) UserByUsername ¶
func (UnimplementedUserStorageServer) UserByUsername(context.Context, *UserByUsernameRequest) (*User, error)
type UnsafeUserStorageServer ¶
type UnsafeUserStorageServer interface {
// contains filtered or unexported methods
}
UnsafeUserStorageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserStorageServer will result in compilation errors.
type UpdateLoginMetadataRequest ¶
type UpdateLoginMetadataRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UpdateLoginMetadataRequest) Descriptor
deprecated
func (*UpdateLoginMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLoginMetadataRequest.ProtoReflect.Descriptor instead.
func (*UpdateLoginMetadataRequest) GetId ¶
func (x *UpdateLoginMetadataRequest) GetId() string
func (*UpdateLoginMetadataRequest) ProtoMessage ¶
func (*UpdateLoginMetadataRequest) ProtoMessage()
func (*UpdateLoginMetadataRequest) ProtoReflect ¶
func (x *UpdateLoginMetadataRequest) ProtoReflect() protoreflect.Message
func (*UpdateLoginMetadataRequest) Reset ¶
func (x *UpdateLoginMetadataRequest) Reset()
func (*UpdateLoginMetadataRequest) String ¶
func (x *UpdateLoginMetadataRequest) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetId ¶
func (x *UpdateUserRequest) GetId() string
func (*UpdateUserRequest) GetUser ¶
func (x *UpdateUserRequest) GetUser() *User
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` Pswd string `protobuf:"bytes,6,opt,name=pswd,proto3" json:"pswd,omitempty"` Active bool `protobuf:"varint,7,opt,name=active,proto3" json:"active,omitempty"` TfaInfo *User_TFAInfo `protobuf:"bytes,8,opt,name=tfa_info,json=tfaInfo,proto3" json:"tfa_info,omitempty"` NumOfLogins int32 `protobuf:"varint,9,opt,name=num_of_logins,json=numOfLogins,proto3" json:"num_of_logins,omitempty"` LatestLoginTime int64 `protobuf:"varint,10,opt,name=latest_login_time,json=latestLoginTime,proto3" json:"latest_login_time,omitempty"` AccessRole string `protobuf:"bytes,11,opt,name=access_role,json=accessRole,proto3" json:"access_role,omitempty"` Anonymous bool `protobuf:"varint,12,opt,name=anonymous,proto3" json:"anonymous,omitempty"` FederatedIds []string `protobuf:"bytes,13,rep,name=federated_ids,json=federatedIds,proto3" json:"federated_ids,omitempty"` Scopes []string `protobuf:"bytes,14,rep,name=scopes,proto3" json:"scopes,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAccessRole ¶
func (*User) GetAnonymous ¶
func (*User) GetFederatedIds ¶
func (*User) GetFullName ¶
func (*User) GetLatestLoginTime ¶
func (*User) GetNumOfLogins ¶
func (*User) GetTfaInfo ¶
func (x *User) GetTfaInfo() *User_TFAInfo
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserByEmailRequest ¶
type UserByEmailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*UserByEmailRequest) Descriptor
deprecated
func (*UserByEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserByEmailRequest.ProtoReflect.Descriptor instead.
func (*UserByEmailRequest) GetEmail ¶
func (x *UserByEmailRequest) GetEmail() string
func (*UserByEmailRequest) ProtoMessage ¶
func (*UserByEmailRequest) ProtoMessage()
func (*UserByEmailRequest) ProtoReflect ¶
func (x *UserByEmailRequest) ProtoReflect() protoreflect.Message
func (*UserByEmailRequest) Reset ¶
func (x *UserByEmailRequest) Reset()
func (*UserByEmailRequest) String ¶
func (x *UserByEmailRequest) String() string
type UserByFederatedIDRequest ¶
type UserByFederatedIDRequest struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserByFederatedIDRequest) Descriptor
deprecated
func (*UserByFederatedIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserByFederatedIDRequest.ProtoReflect.Descriptor instead.
func (*UserByFederatedIDRequest) GetId ¶
func (x *UserByFederatedIDRequest) GetId() string
func (*UserByFederatedIDRequest) GetProvider ¶
func (x *UserByFederatedIDRequest) GetProvider() string
func (*UserByFederatedIDRequest) ProtoMessage ¶
func (*UserByFederatedIDRequest) ProtoMessage()
func (*UserByFederatedIDRequest) ProtoReflect ¶
func (x *UserByFederatedIDRequest) ProtoReflect() protoreflect.Message
func (*UserByFederatedIDRequest) Reset ¶
func (x *UserByFederatedIDRequest) Reset()
func (*UserByFederatedIDRequest) String ¶
func (x *UserByFederatedIDRequest) String() string
type UserByIDRequest ¶
type UserByIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserByIDRequest) Descriptor
deprecated
func (*UserByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserByIDRequest.ProtoReflect.Descriptor instead.
func (*UserByIDRequest) GetId ¶
func (x *UserByIDRequest) GetId() string
func (*UserByIDRequest) ProtoMessage ¶
func (*UserByIDRequest) ProtoMessage()
func (*UserByIDRequest) ProtoReflect ¶
func (x *UserByIDRequest) ProtoReflect() protoreflect.Message
func (*UserByIDRequest) Reset ¶
func (x *UserByIDRequest) Reset()
func (*UserByIDRequest) String ¶
func (x *UserByIDRequest) String() string
type UserByPhoneRequest ¶
type UserByPhoneRequest struct { Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*UserByPhoneRequest) Descriptor
deprecated
func (*UserByPhoneRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserByPhoneRequest.ProtoReflect.Descriptor instead.
func (*UserByPhoneRequest) GetPhone ¶
func (x *UserByPhoneRequest) GetPhone() string
func (*UserByPhoneRequest) ProtoMessage ¶
func (*UserByPhoneRequest) ProtoMessage()
func (*UserByPhoneRequest) ProtoReflect ¶
func (x *UserByPhoneRequest) ProtoReflect() protoreflect.Message
func (*UserByPhoneRequest) Reset ¶
func (x *UserByPhoneRequest) Reset()
func (*UserByPhoneRequest) String ¶
func (x *UserByPhoneRequest) String() string
type UserByUsernameRequest ¶
type UserByUsernameRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*UserByUsernameRequest) Descriptor
deprecated
func (*UserByUsernameRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserByUsernameRequest.ProtoReflect.Descriptor instead.
func (*UserByUsernameRequest) GetUsername ¶
func (x *UserByUsernameRequest) GetUsername() string
func (*UserByUsernameRequest) ProtoMessage ¶
func (*UserByUsernameRequest) ProtoMessage()
func (*UserByUsernameRequest) ProtoReflect ¶
func (x *UserByUsernameRequest) ProtoReflect() protoreflect.Message
func (*UserByUsernameRequest) Reset ¶
func (x *UserByUsernameRequest) Reset()
func (*UserByUsernameRequest) String ¶
func (x *UserByUsernameRequest) String() string
type UserStorageClient ¶
type UserStorageClient interface { // UserByPhone(phone string) (model.User, error) { UserByPhone(ctx context.Context, in *UserByPhoneRequest, opts ...grpc.CallOption) (*User, error) // AddUserWithPassword(user model.User, password, role string, isAnonymous bool) (model.User, error) { AddUserWithPassword(ctx context.Context, in *AddUserWithPasswordRequest, opts ...grpc.CallOption) (*User, error) // UserByID(id string) (model.User, error) { UserByID(ctx context.Context, in *UserByIDRequest, opts ...grpc.CallOption) (*User, error) // UserByEmail(email string) (model.User, error) { UserByEmail(ctx context.Context, in *UserByEmailRequest, opts ...grpc.CallOption) (*User, error) // UserByUsername(username string) (model.User, error) { UserByUsername(ctx context.Context, in *UserByUsernameRequest, opts ...grpc.CallOption) (*User, error) // UserByFederatedID(provider string, id string) (model.User, error) { UserByFederatedID(ctx context.Context, in *UserByFederatedIDRequest, opts ...grpc.CallOption) (*User, error) // AddUserWithFederatedID(user model.User, provider string, id, role string) (model.User, error) { AddUserWithFederatedID(ctx context.Context, in *AddUserWithFederatedIDRequest, opts ...grpc.CallOption) (*User, error) // UpdateUser(userID string, newUser model.User) (model.User, error) { UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) // ResetPassword(id, password string) error { ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*Empty, error) // CheckPassword(id, password string) error { CheckPassword(ctx context.Context, in *CheckPasswordRequest, opts ...grpc.CallOption) (*Empty, error) // DeleteUser(id string) error { DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*Empty, error) // FetchUsers(search string, skip, limit int) ([]model.User, int, error) { FetchUsers(ctx context.Context, in *FetchUsersRequest, opts ...grpc.CallOption) (*FetchUsersResponse, error) // UpdateLoginMetadata(userID string) { UpdateLoginMetadata(ctx context.Context, in *UpdateLoginMetadataRequest, opts ...grpc.CallOption) (*Empty, error) // push device tokens // AttachDeviceToken(userID, token string) error { AttachDeviceToken(ctx context.Context, in *AttachDeviceTokenRequest, opts ...grpc.CallOption) (*Empty, error) // DetachDeviceToken(token string) error { DetachDeviceToken(ctx context.Context, in *DetachDeviceTokenRequest, opts ...grpc.CallOption) (*Empty, error) // AllDeviceTokens(userID string) ([]string, error) { AllDeviceTokens(ctx context.Context, in *AllDeviceTokensRequest, opts ...grpc.CallOption) (*AllDeviceTokensResponse, error) // import data // ImportJSON(data []byte) error { ImportJSON(ctx context.Context, in *ImportJSONRequest, opts ...grpc.CallOption) (*Empty, error) // Close() { Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*Empty, error) }
UserStorageClient is the client API for UserStorage 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 NewUserStorageClient ¶
func NewUserStorageClient(cc grpc.ClientConnInterface) UserStorageClient
type UserStorageServer ¶
type UserStorageServer interface { // UserByPhone(phone string) (model.User, error) { UserByPhone(context.Context, *UserByPhoneRequest) (*User, error) // AddUserWithPassword(user model.User, password, role string, isAnonymous bool) (model.User, error) { AddUserWithPassword(context.Context, *AddUserWithPasswordRequest) (*User, error) // UserByID(id string) (model.User, error) { UserByID(context.Context, *UserByIDRequest) (*User, error) // UserByEmail(email string) (model.User, error) { UserByEmail(context.Context, *UserByEmailRequest) (*User, error) // UserByUsername(username string) (model.User, error) { UserByUsername(context.Context, *UserByUsernameRequest) (*User, error) // UserByFederatedID(provider string, id string) (model.User, error) { UserByFederatedID(context.Context, *UserByFederatedIDRequest) (*User, error) // AddUserWithFederatedID(user model.User, provider string, id, role string) (model.User, error) { AddUserWithFederatedID(context.Context, *AddUserWithFederatedIDRequest) (*User, error) // UpdateUser(userID string, newUser model.User) (model.User, error) { UpdateUser(context.Context, *UpdateUserRequest) (*User, error) // ResetPassword(id, password string) error { ResetPassword(context.Context, *ResetPasswordRequest) (*Empty, error) // CheckPassword(id, password string) error { CheckPassword(context.Context, *CheckPasswordRequest) (*Empty, error) // DeleteUser(id string) error { DeleteUser(context.Context, *DeleteUserRequest) (*Empty, error) // FetchUsers(search string, skip, limit int) ([]model.User, int, error) { FetchUsers(context.Context, *FetchUsersRequest) (*FetchUsersResponse, error) // UpdateLoginMetadata(userID string) { UpdateLoginMetadata(context.Context, *UpdateLoginMetadataRequest) (*Empty, error) // push device tokens // AttachDeviceToken(userID, token string) error { AttachDeviceToken(context.Context, *AttachDeviceTokenRequest) (*Empty, error) // DetachDeviceToken(token string) error { DetachDeviceToken(context.Context, *DetachDeviceTokenRequest) (*Empty, error) // AllDeviceTokens(userID string) ([]string, error) { AllDeviceTokens(context.Context, *AllDeviceTokensRequest) (*AllDeviceTokensResponse, error) // import data // ImportJSON(data []byte) error { ImportJSON(context.Context, *ImportJSONRequest) (*Empty, error) // Close() { Close(context.Context, *CloseRequest) (*Empty, error) // contains filtered or unexported methods }
UserStorageServer is the server API for UserStorage service. All implementations must embed UnimplementedUserStorageServer for forward compatibility
type User_TFAInfo ¶
type User_TFAInfo struct { IsEnabled bool `protobuf:"varint,1,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"` HotpCounter int32 `protobuf:"varint,2,opt,name=hotp_counter,json=hotpCounter,proto3" json:"hotp_counter,omitempty"` HotpExpiredAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=hotp_expired_at,json=hotpExpiredAt,proto3" json:"hotp_expired_at,omitempty"` Secret string `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"` // contains filtered or unexported fields }
func (*User_TFAInfo) Descriptor
deprecated
func (*User_TFAInfo) Descriptor() ([]byte, []int)
Deprecated: Use User_TFAInfo.ProtoReflect.Descriptor instead.
func (*User_TFAInfo) GetHotpCounter ¶
func (x *User_TFAInfo) GetHotpCounter() int32
func (*User_TFAInfo) GetHotpExpiredAt ¶
func (x *User_TFAInfo) GetHotpExpiredAt() *timestamppb.Timestamp
func (*User_TFAInfo) GetIsEnabled ¶
func (x *User_TFAInfo) GetIsEnabled() bool
func (*User_TFAInfo) GetSecret ¶
func (x *User_TFAInfo) GetSecret() string
func (*User_TFAInfo) ProtoMessage ¶
func (*User_TFAInfo) ProtoMessage()
func (*User_TFAInfo) ProtoReflect ¶
func (x *User_TFAInfo) ProtoReflect() protoreflect.Message
func (*User_TFAInfo) Reset ¶
func (x *User_TFAInfo) Reset()
func (*User_TFAInfo) String ¶
func (x *User_TFAInfo) String() string