Documentation
¶
Index ¶
- Variables
- func RegisterMobilityAccountsServer(s grpc.ServiceRegistrar, srv MobilityAccountsServer)
- func Run(done chan error, cfg *viper.Viper, handler handlers.MobilityAccountsHandler)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAuthentication() *AccountAuth
- func (x *Account) GetData() *structpb.Struct
- func (x *Account) GetId() string
- func (x *Account) GetNamespace() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- func (a Account) ToStorageType() storage.Account
- type AccountAuth
- type ChangePasswordRequest
- func (*ChangePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePasswordRequest) GetId() string
- func (x *ChangePasswordRequest) GetPassword() string
- func (*ChangePasswordRequest) ProtoMessage()
- func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ChangePasswordRequest) Reset()
- func (x *ChangePasswordRequest) String() string
- type ChangePasswordResponse
- type GetAccountRequest
- type GetAccountResponse
- func (*GetAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountResponse) GetAccount() *Account
- func (*GetAccountResponse) ProtoMessage()
- func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountResponse) Reset()
- func (x *GetAccountResponse) String() string
- type GetAccountUsernameRequest
- func (*GetAccountUsernameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountUsernameRequest) GetNamespace() string
- func (x *GetAccountUsernameRequest) GetUsername() string
- func (*GetAccountUsernameRequest) ProtoMessage()
- func (x *GetAccountUsernameRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountUsernameRequest) Reset()
- func (x *GetAccountUsernameRequest) String() string
- type GetAccountUsernameResponse
- func (*GetAccountUsernameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountUsernameResponse) GetAccount() *Account
- func (*GetAccountUsernameResponse) ProtoMessage()
- func (x *GetAccountUsernameResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountUsernameResponse) Reset()
- func (x *GetAccountUsernameResponse) String() string
- type GetAccountsBatchRequest
- func (*GetAccountsBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountsBatchRequest) GetAccountids() []string
- func (*GetAccountsBatchRequest) ProtoMessage()
- func (x *GetAccountsBatchRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountsBatchRequest) Reset()
- func (x *GetAccountsBatchRequest) String() string
- type GetAccountsBatchResponse
- func (*GetAccountsBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountsBatchResponse) GetAccounts() []*Account
- func (*GetAccountsBatchResponse) ProtoMessage()
- func (x *GetAccountsBatchResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountsBatchResponse) Reset()
- func (x *GetAccountsBatchResponse) String() string
- type GetAccountsRequest
- func (*GetAccountsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountsRequest) GetNamespaces() []string
- func (*GetAccountsRequest) ProtoMessage()
- func (x *GetAccountsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountsRequest) Reset()
- func (x *GetAccountsRequest) String() string
- type GetAccountsResponse
- func (*GetAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountsResponse) GetAccounts() []*Account
- func (*GetAccountsResponse) ProtoMessage()
- func (x *GetAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountsResponse) Reset()
- func (x *GetAccountsResponse) String() string
- type LocalAuth
- func (*LocalAuth) Descriptor() ([]byte, []int)deprecated
- func (x *LocalAuth) GetEmail() string
- func (x *LocalAuth) GetEmailValidation() *Validation
- func (x *LocalAuth) GetPassword() string
- func (x *LocalAuth) GetPhoneNumber() string
- func (x *LocalAuth) GetPhoneNumberValidation() *Validation
- func (x *LocalAuth) GetUsername() string
- func (*LocalAuth) ProtoMessage()
- func (x *LocalAuth) ProtoReflect() protoreflect.Message
- func (x *LocalAuth) Reset()
- func (x *LocalAuth) String() string
- func (lc LocalAuth) ToStorageType() storage.LocalAuth
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetNamespace() string
- 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
- type LoginResponse
- type MobilityAccountsClient
- type MobilityAccountsServer
- type MobilityAccountsServerImpl
- func (s MobilityAccountsServerImpl) ChangePassword(ctx context.Context, req *ChangePasswordRequest) (*ChangePasswordResponse, error)
- func (s MobilityAccountsServerImpl) GetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error)
- func (s MobilityAccountsServerImpl) GetAccountUsername(ctx context.Context, req *GetAccountUsernameRequest) (*GetAccountUsernameResponse, error)
- func (s MobilityAccountsServerImpl) GetAccounts(ctx context.Context, req *GetAccountsRequest) (*GetAccountsResponse, error)
- func (s MobilityAccountsServerImpl) GetAccountsBatch(ctx context.Context, req *GetAccountsBatchRequest) (*GetAccountsBatchResponse, error)
- func (s MobilityAccountsServerImpl) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
- func (s MobilityAccountsServerImpl) Register(ctx context.Context, req *RegisterRequest) (*RegisterResponse, error)
- func (s MobilityAccountsServerImpl) UpdateData(ctx context.Context, req *UpdateDataRequest) (*UpdateDataResponse, error)
- func (s MobilityAccountsServerImpl) UpdatePhoneNumber(ctx context.Context, req *UpdatePhoneNumberRequest) (*UpdatePhoneNumberResponse, error)
- type RegisterRequest
- type RegisterResponse
- type UnimplementedMobilityAccountsServer
- func (UnimplementedMobilityAccountsServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
- func (UnimplementedMobilityAccountsServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
- func (UnimplementedMobilityAccountsServer) GetAccountUsername(context.Context, *GetAccountUsernameRequest) (*GetAccountUsernameResponse, error)
- func (UnimplementedMobilityAccountsServer) GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error)
- func (UnimplementedMobilityAccountsServer) GetAccountsBatch(context.Context, *GetAccountsBatchRequest) (*GetAccountsBatchResponse, error)
- func (UnimplementedMobilityAccountsServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedMobilityAccountsServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedMobilityAccountsServer) UpdateData(context.Context, *UpdateDataRequest) (*UpdateDataResponse, error)
- func (UnimplementedMobilityAccountsServer) UpdatePhoneNumber(context.Context, *UpdatePhoneNumberRequest) (*UpdatePhoneNumberResponse, error)
- type UnsafeMobilityAccountsServer
- type UpdateDataRequest
- type UpdateDataResponse
- func (*UpdateDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDataResponse) GetAccount() *Account
- func (*UpdateDataResponse) ProtoMessage()
- func (x *UpdateDataResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateDataResponse) Reset()
- func (x *UpdateDataResponse) String() string
- type UpdatePhoneNumberRequest
- func (*UpdatePhoneNumberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePhoneNumberRequest) GetId() string
- func (x *UpdatePhoneNumberRequest) GetPhoneNumber() string
- func (x *UpdatePhoneNumberRequest) GetVerificationCode() string
- func (x *UpdatePhoneNumberRequest) GetVerified() bool
- func (*UpdatePhoneNumberRequest) ProtoMessage()
- func (x *UpdatePhoneNumberRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePhoneNumberRequest) Reset()
- func (x *UpdatePhoneNumberRequest) String() string
- type UpdatePhoneNumberResponse
- func (*UpdatePhoneNumberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePhoneNumberResponse) GetOk() bool
- func (*UpdatePhoneNumberResponse) ProtoMessage()
- func (x *UpdatePhoneNumberResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePhoneNumberResponse) Reset()
- func (x *UpdatePhoneNumberResponse) String() string
- type Validation
- func (*Validation) Descriptor() ([]byte, []int)deprecated
- func (x *Validation) GetValidated() bool
- func (x *Validation) GetValidationCode() string
- func (*Validation) ProtoMessage()
- func (x *Validation) ProtoReflect() protoreflect.Message
- func (x *Validation) Reset()
- func (x *Validation) String() string
Constants ¶
This section is empty.
Variables ¶
var File_accounts_proto protoreflect.FileDescriptor
var File_comasvc_proto protoreflect.FileDescriptor
var MobilityAccounts_ServiceDesc = grpc.ServiceDesc{ ServiceName: "MobilityAccounts", HandlerType: (*MobilityAccountsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _MobilityAccounts_Register_Handler, }, { MethodName: "UpdateData", Handler: _MobilityAccounts_UpdateData_Handler, }, { MethodName: "UpdatePhoneNumber", Handler: _MobilityAccounts_UpdatePhoneNumber_Handler, }, { MethodName: "GetAccount", Handler: _MobilityAccounts_GetAccount_Handler, }, { MethodName: "GetAccountUsername", Handler: _MobilityAccounts_GetAccountUsername_Handler, }, { MethodName: "GetAccounts", Handler: _MobilityAccounts_GetAccounts_Handler, }, { MethodName: "GetAccountsBatch", Handler: _MobilityAccounts_GetAccountsBatch_Handler, }, { MethodName: "Login", Handler: _MobilityAccounts_Login_Handler, }, { MethodName: "ChangePassword", Handler: _MobilityAccounts_ChangePassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "comasvc.proto", }
MobilityAccounts_ServiceDesc is the grpc.ServiceDesc for MobilityAccounts service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMobilityAccountsServer ¶
func RegisterMobilityAccountsServer(s grpc.ServiceRegistrar, srv MobilityAccountsServer)
Types ¶
type Account ¶
type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Authentication *AccountAuth `protobuf:"bytes,3,opt,name=authentication,proto3" json:"authentication,omitempty"` Data *structpb.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func AccountFromStorageType ¶
func (*Account) Descriptor
deprecated
func (*Account) GetAuthentication ¶
func (x *Account) GetAuthentication() *AccountAuth
func (*Account) GetNamespace ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
func (Account) ToStorageType ¶
type AccountAuth ¶
type AccountAuth struct { Local *LocalAuth `protobuf:"bytes,7,opt,name=local,proto3,oneof" json:"local,omitempty"` //TODO SSO // contains filtered or unexported fields }
func (*AccountAuth) Descriptor
deprecated
func (*AccountAuth) Descriptor() ([]byte, []int)
Deprecated: Use AccountAuth.ProtoReflect.Descriptor instead.
func (*AccountAuth) GetLocal ¶
func (x *AccountAuth) GetLocal() *LocalAuth
func (*AccountAuth) ProtoMessage ¶
func (*AccountAuth) ProtoMessage()
func (*AccountAuth) ProtoReflect ¶
func (x *AccountAuth) ProtoReflect() protoreflect.Message
func (*AccountAuth) Reset ¶
func (x *AccountAuth) Reset()
func (*AccountAuth) String ¶
func (x *AccountAuth) String() string
type ChangePasswordRequest ¶
type ChangePasswordRequest struct { Id string `protobuf:"bytes,15,opt,name=id,proto3" json:"id,omitempty"` Password string `protobuf:"bytes,16,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*ChangePasswordRequest) Descriptor
deprecated
func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
func (*ChangePasswordRequest) GetId ¶
func (x *ChangePasswordRequest) GetId() string
func (*ChangePasswordRequest) GetPassword ¶
func (x *ChangePasswordRequest) GetPassword() string
func (*ChangePasswordRequest) ProtoMessage ¶
func (*ChangePasswordRequest) ProtoMessage()
func (*ChangePasswordRequest) ProtoReflect ¶
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
func (*ChangePasswordRequest) Reset ¶
func (x *ChangePasswordRequest) Reset()
func (*ChangePasswordRequest) String ¶
func (x *ChangePasswordRequest) String() string
type ChangePasswordResponse ¶
type ChangePasswordResponse struct {
// contains filtered or unexported fields
}
func (*ChangePasswordResponse) Descriptor
deprecated
func (*ChangePasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
func (*ChangePasswordResponse) ProtoMessage ¶
func (*ChangePasswordResponse) ProtoMessage()
func (*ChangePasswordResponse) ProtoReflect ¶
func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message
func (*ChangePasswordResponse) Reset ¶
func (x *ChangePasswordResponse) Reset()
func (*ChangePasswordResponse) String ¶
func (x *ChangePasswordResponse) String() string
type GetAccountRequest ¶
type GetAccountRequest struct { Id string `protobuf:"bytes,9,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetId ¶
func (x *GetAccountRequest) GetId() string
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
type GetAccountResponse ¶
type GetAccountResponse struct { Account *Account `protobuf:"bytes,12,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetAccountResponse) Descriptor
deprecated
func (*GetAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.
func (*GetAccountResponse) GetAccount ¶
func (x *GetAccountResponse) GetAccount() *Account
func (*GetAccountResponse) ProtoMessage ¶
func (*GetAccountResponse) ProtoMessage()
func (*GetAccountResponse) ProtoReflect ¶
func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
func (*GetAccountResponse) Reset ¶
func (x *GetAccountResponse) Reset()
func (*GetAccountResponse) String ¶
func (x *GetAccountResponse) String() string
type GetAccountUsernameRequest ¶
type GetAccountUsernameRequest struct { Username string `protobuf:"bytes,10,opt,name=username,proto3" json:"username,omitempty"` Namespace string `protobuf:"bytes,11,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*GetAccountUsernameRequest) Descriptor
deprecated
func (*GetAccountUsernameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountUsernameRequest.ProtoReflect.Descriptor instead.
func (*GetAccountUsernameRequest) GetNamespace ¶
func (x *GetAccountUsernameRequest) GetNamespace() string
func (*GetAccountUsernameRequest) GetUsername ¶
func (x *GetAccountUsernameRequest) GetUsername() string
func (*GetAccountUsernameRequest) ProtoMessage ¶
func (*GetAccountUsernameRequest) ProtoMessage()
func (*GetAccountUsernameRequest) ProtoReflect ¶
func (x *GetAccountUsernameRequest) ProtoReflect() protoreflect.Message
func (*GetAccountUsernameRequest) Reset ¶
func (x *GetAccountUsernameRequest) Reset()
func (*GetAccountUsernameRequest) String ¶
func (x *GetAccountUsernameRequest) String() string
type GetAccountUsernameResponse ¶
type GetAccountUsernameResponse struct { Account *Account `protobuf:"bytes,12,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetAccountUsernameResponse) Descriptor
deprecated
func (*GetAccountUsernameResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountUsernameResponse.ProtoReflect.Descriptor instead.
func (*GetAccountUsernameResponse) GetAccount ¶
func (x *GetAccountUsernameResponse) GetAccount() *Account
func (*GetAccountUsernameResponse) ProtoMessage ¶
func (*GetAccountUsernameResponse) ProtoMessage()
func (*GetAccountUsernameResponse) ProtoReflect ¶
func (x *GetAccountUsernameResponse) ProtoReflect() protoreflect.Message
func (*GetAccountUsernameResponse) Reset ¶
func (x *GetAccountUsernameResponse) Reset()
func (*GetAccountUsernameResponse) String ¶
func (x *GetAccountUsernameResponse) String() string
type GetAccountsBatchRequest ¶
type GetAccountsBatchRequest struct { Accountids []string `protobuf:"bytes,13,rep,name=accountids,proto3" json:"accountids,omitempty"` // Filter on namespaces // contains filtered or unexported fields }
func (*GetAccountsBatchRequest) Descriptor
deprecated
func (*GetAccountsBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountsBatchRequest.ProtoReflect.Descriptor instead.
func (*GetAccountsBatchRequest) GetAccountids ¶
func (x *GetAccountsBatchRequest) GetAccountids() []string
func (*GetAccountsBatchRequest) ProtoMessage ¶
func (*GetAccountsBatchRequest) ProtoMessage()
func (*GetAccountsBatchRequest) ProtoReflect ¶
func (x *GetAccountsBatchRequest) ProtoReflect() protoreflect.Message
func (*GetAccountsBatchRequest) Reset ¶
func (x *GetAccountsBatchRequest) Reset()
func (*GetAccountsBatchRequest) String ¶
func (x *GetAccountsBatchRequest) String() string
type GetAccountsBatchResponse ¶
type GetAccountsBatchResponse struct { Accounts []*Account `protobuf:"bytes,14,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
func (*GetAccountsBatchResponse) Descriptor
deprecated
func (*GetAccountsBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountsBatchResponse.ProtoReflect.Descriptor instead.
func (*GetAccountsBatchResponse) GetAccounts ¶
func (x *GetAccountsBatchResponse) GetAccounts() []*Account
func (*GetAccountsBatchResponse) ProtoMessage ¶
func (*GetAccountsBatchResponse) ProtoMessage()
func (*GetAccountsBatchResponse) ProtoReflect ¶
func (x *GetAccountsBatchResponse) ProtoReflect() protoreflect.Message
func (*GetAccountsBatchResponse) Reset ¶
func (x *GetAccountsBatchResponse) Reset()
func (*GetAccountsBatchResponse) String ¶
func (x *GetAccountsBatchResponse) String() string
type GetAccountsRequest ¶
type GetAccountsRequest struct { Namespaces []string `protobuf:"bytes,13,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // Filter on namespaces // contains filtered or unexported fields }
func (*GetAccountsRequest) Descriptor
deprecated
func (*GetAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountsRequest.ProtoReflect.Descriptor instead.
func (*GetAccountsRequest) GetNamespaces ¶
func (x *GetAccountsRequest) GetNamespaces() []string
func (*GetAccountsRequest) ProtoMessage ¶
func (*GetAccountsRequest) ProtoMessage()
func (*GetAccountsRequest) ProtoReflect ¶
func (x *GetAccountsRequest) ProtoReflect() protoreflect.Message
func (*GetAccountsRequest) Reset ¶
func (x *GetAccountsRequest) Reset()
func (*GetAccountsRequest) String ¶
func (x *GetAccountsRequest) String() string
type GetAccountsResponse ¶
type GetAccountsResponse struct { Accounts []*Account `protobuf:"bytes,14,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
func (*GetAccountsResponse) Descriptor
deprecated
func (*GetAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountsResponse.ProtoReflect.Descriptor instead.
func (*GetAccountsResponse) GetAccounts ¶
func (x *GetAccountsResponse) GetAccounts() []*Account
func (*GetAccountsResponse) ProtoMessage ¶
func (*GetAccountsResponse) ProtoMessage()
func (*GetAccountsResponse) ProtoReflect ¶
func (x *GetAccountsResponse) ProtoReflect() protoreflect.Message
func (*GetAccountsResponse) Reset ¶
func (x *GetAccountsResponse) Reset()
func (*GetAccountsResponse) String ¶
func (x *GetAccountsResponse) String() string
type LocalAuth ¶
type LocalAuth struct { Username *string `protobuf:"bytes,10,opt,name=username,proto3,oneof" json:"username,omitempty"` Password string `protobuf:"bytes,11,opt,name=password,proto3" json:"password,omitempty"` Email *string `protobuf:"bytes,12,opt,name=email,proto3,oneof" json:"email,omitempty"` PhoneNumber *string `protobuf:"bytes,13,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` EmailValidation *Validation `protobuf:"bytes,14,opt,name=email_validation,json=emailValidation,proto3,oneof" json:"email_validation,omitempty"` PhoneNumberValidation *Validation `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LocalAuth) Descriptor
deprecated
func (*LocalAuth) GetEmailValidation ¶
func (x *LocalAuth) GetEmailValidation() *Validation
func (*LocalAuth) GetPassword ¶
func (*LocalAuth) GetPhoneNumber ¶
func (*LocalAuth) GetPhoneNumberValidation ¶
func (x *LocalAuth) GetPhoneNumberValidation() *Validation
func (*LocalAuth) GetUsername ¶
func (*LocalAuth) ProtoMessage ¶
func (*LocalAuth) ProtoMessage()
func (*LocalAuth) ProtoReflect ¶
func (x *LocalAuth) ProtoReflect() protoreflect.Message
func (LocalAuth) ToStorageType ¶
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"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetNamespace ¶
func (x *LoginRequest) GetNamespace() string
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
type LoginResponse ¶
type LoginResponse struct { Account *Account `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetAccount ¶
func (x *LoginResponse) GetAccount() *Account
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
type MobilityAccountsClient ¶
type MobilityAccountsClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) UpdateData(ctx context.Context, in *UpdateDataRequest, opts ...grpc.CallOption) (*UpdateDataResponse, error) UpdatePhoneNumber(ctx context.Context, in *UpdatePhoneNumberRequest, opts ...grpc.CallOption) (*UpdatePhoneNumberResponse, error) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) GetAccountUsername(ctx context.Context, in *GetAccountUsernameRequest, opts ...grpc.CallOption) (*GetAccountUsernameResponse, error) GetAccounts(ctx context.Context, in *GetAccountsRequest, opts ...grpc.CallOption) (*GetAccountsResponse, error) GetAccountsBatch(ctx context.Context, in *GetAccountsBatchRequest, opts ...grpc.CallOption) (*GetAccountsBatchResponse, error) // Authentication functions Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error) }
MobilityAccountsClient is the client API for MobilityAccounts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMobilityAccountsClient ¶
func NewMobilityAccountsClient(cc grpc.ClientConnInterface) MobilityAccountsClient
type MobilityAccountsServer ¶
type MobilityAccountsServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) UpdateData(context.Context, *UpdateDataRequest) (*UpdateDataResponse, error) UpdatePhoneNumber(context.Context, *UpdatePhoneNumberRequest) (*UpdatePhoneNumberResponse, error) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) GetAccountUsername(context.Context, *GetAccountUsernameRequest) (*GetAccountUsernameResponse, error) GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error) GetAccountsBatch(context.Context, *GetAccountsBatchRequest) (*GetAccountsBatchResponse, error) // Authentication functions Login(context.Context, *LoginRequest) (*LoginResponse, error) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) // contains filtered or unexported methods }
MobilityAccountsServer is the server API for MobilityAccounts service. All implementations must embed UnimplementedMobilityAccountsServer for forward compatibility
type MobilityAccountsServerImpl ¶
type MobilityAccountsServerImpl struct {
// contains filtered or unexported fields
}
func NewMobilityAccountsServer ¶
func NewMobilityAccountsServer(h handlers.MobilityAccountsHandler) *MobilityAccountsServerImpl
func (MobilityAccountsServerImpl) ChangePassword ¶
func (s MobilityAccountsServerImpl) ChangePassword(ctx context.Context, req *ChangePasswordRequest) (*ChangePasswordResponse, error)
func (MobilityAccountsServerImpl) GetAccount ¶
func (s MobilityAccountsServerImpl) GetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error)
func (MobilityAccountsServerImpl) GetAccountUsername ¶
func (s MobilityAccountsServerImpl) GetAccountUsername(ctx context.Context, req *GetAccountUsernameRequest) (*GetAccountUsernameResponse, error)
func (MobilityAccountsServerImpl) GetAccounts ¶
func (s MobilityAccountsServerImpl) GetAccounts(ctx context.Context, req *GetAccountsRequest) (*GetAccountsResponse, error)
func (MobilityAccountsServerImpl) GetAccountsBatch ¶
func (s MobilityAccountsServerImpl) GetAccountsBatch(ctx context.Context, req *GetAccountsBatchRequest) (*GetAccountsBatchResponse, error)
func (MobilityAccountsServerImpl) Login ¶
func (s MobilityAccountsServerImpl) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
func (MobilityAccountsServerImpl) Register ¶
func (s MobilityAccountsServerImpl) Register(ctx context.Context, req *RegisterRequest) (*RegisterResponse, error)
func (MobilityAccountsServerImpl) UpdateData ¶
func (s MobilityAccountsServerImpl) UpdateData(ctx context.Context, req *UpdateDataRequest) (*UpdateDataResponse, error)
func (MobilityAccountsServerImpl) UpdatePhoneNumber ¶
func (s MobilityAccountsServerImpl) UpdatePhoneNumber(ctx context.Context, req *UpdatePhoneNumberRequest) (*UpdatePhoneNumberResponse, error)
type RegisterRequest ¶
type RegisterRequest struct { Account *Account `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetAccount ¶
func (x *RegisterRequest) GetAccount() *Account
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
type RegisterResponse ¶
type RegisterResponse struct { Account *Account `protobuf:"bytes,6,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetAccount ¶
func (x *RegisterResponse) GetAccount() *Account
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
type UnimplementedMobilityAccountsServer ¶
type UnimplementedMobilityAccountsServer struct { }
UnimplementedMobilityAccountsServer must be embedded to have forward compatible implementations.
func (UnimplementedMobilityAccountsServer) ChangePassword ¶
func (UnimplementedMobilityAccountsServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
func (UnimplementedMobilityAccountsServer) GetAccount ¶
func (UnimplementedMobilityAccountsServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
func (UnimplementedMobilityAccountsServer) GetAccountUsername ¶
func (UnimplementedMobilityAccountsServer) GetAccountUsername(context.Context, *GetAccountUsernameRequest) (*GetAccountUsernameResponse, error)
func (UnimplementedMobilityAccountsServer) GetAccounts ¶
func (UnimplementedMobilityAccountsServer) GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error)
func (UnimplementedMobilityAccountsServer) GetAccountsBatch ¶
func (UnimplementedMobilityAccountsServer) GetAccountsBatch(context.Context, *GetAccountsBatchRequest) (*GetAccountsBatchResponse, error)
func (UnimplementedMobilityAccountsServer) Login ¶
func (UnimplementedMobilityAccountsServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedMobilityAccountsServer) Register ¶
func (UnimplementedMobilityAccountsServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedMobilityAccountsServer) UpdateData ¶
func (UnimplementedMobilityAccountsServer) UpdateData(context.Context, *UpdateDataRequest) (*UpdateDataResponse, error)
func (UnimplementedMobilityAccountsServer) UpdatePhoneNumber ¶
func (UnimplementedMobilityAccountsServer) UpdatePhoneNumber(context.Context, *UpdatePhoneNumberRequest) (*UpdatePhoneNumberResponse, error)
type UnsafeMobilityAccountsServer ¶
type UnsafeMobilityAccountsServer interface {
// contains filtered or unexported methods
}
UnsafeMobilityAccountsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MobilityAccountsServer will result in compilation errors.
type UpdateDataRequest ¶
type UpdateDataRequest struct { Account *Account `protobuf:"bytes,7,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*UpdateDataRequest) Descriptor
deprecated
func (*UpdateDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDataRequest.ProtoReflect.Descriptor instead.
func (*UpdateDataRequest) GetAccount ¶
func (x *UpdateDataRequest) GetAccount() *Account
func (*UpdateDataRequest) ProtoMessage ¶
func (*UpdateDataRequest) ProtoMessage()
func (*UpdateDataRequest) ProtoReflect ¶
func (x *UpdateDataRequest) ProtoReflect() protoreflect.Message
func (*UpdateDataRequest) Reset ¶
func (x *UpdateDataRequest) Reset()
func (*UpdateDataRequest) String ¶
func (x *UpdateDataRequest) String() string
type UpdateDataResponse ¶
type UpdateDataResponse struct { Account *Account `protobuf:"bytes,8,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*UpdateDataResponse) Descriptor
deprecated
func (*UpdateDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDataResponse.ProtoReflect.Descriptor instead.
func (*UpdateDataResponse) GetAccount ¶
func (x *UpdateDataResponse) GetAccount() *Account
func (*UpdateDataResponse) ProtoMessage ¶
func (*UpdateDataResponse) ProtoMessage()
func (*UpdateDataResponse) ProtoReflect ¶
func (x *UpdateDataResponse) ProtoReflect() protoreflect.Message
func (*UpdateDataResponse) Reset ¶
func (x *UpdateDataResponse) Reset()
func (*UpdateDataResponse) String ¶
func (x *UpdateDataResponse) String() string
type UpdatePhoneNumberRequest ¶
type UpdatePhoneNumberRequest struct { Id string `protobuf:"bytes,17,opt,name=id,proto3" json:"id,omitempty"` PhoneNumber string `protobuf:"bytes,18,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` Verified bool `protobuf:"varint,19,opt,name=verified,proto3" json:"verified,omitempty"` VerificationCode string `protobuf:"bytes,20,opt,name=verification_code,json=verificationCode,proto3" json:"verification_code,omitempty"` // contains filtered or unexported fields }
func (*UpdatePhoneNumberRequest) Descriptor
deprecated
func (*UpdatePhoneNumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePhoneNumberRequest.ProtoReflect.Descriptor instead.
func (*UpdatePhoneNumberRequest) GetId ¶
func (x *UpdatePhoneNumberRequest) GetId() string
func (*UpdatePhoneNumberRequest) GetPhoneNumber ¶
func (x *UpdatePhoneNumberRequest) GetPhoneNumber() string
func (*UpdatePhoneNumberRequest) GetVerificationCode ¶
func (x *UpdatePhoneNumberRequest) GetVerificationCode() string
func (*UpdatePhoneNumberRequest) GetVerified ¶
func (x *UpdatePhoneNumberRequest) GetVerified() bool
func (*UpdatePhoneNumberRequest) ProtoMessage ¶
func (*UpdatePhoneNumberRequest) ProtoMessage()
func (*UpdatePhoneNumberRequest) ProtoReflect ¶
func (x *UpdatePhoneNumberRequest) ProtoReflect() protoreflect.Message
func (*UpdatePhoneNumberRequest) Reset ¶
func (x *UpdatePhoneNumberRequest) Reset()
func (*UpdatePhoneNumberRequest) String ¶
func (x *UpdatePhoneNumberRequest) String() string
type UpdatePhoneNumberResponse ¶
type UpdatePhoneNumberResponse struct { Ok bool `protobuf:"varint,21,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*UpdatePhoneNumberResponse) Descriptor
deprecated
func (*UpdatePhoneNumberResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePhoneNumberResponse.ProtoReflect.Descriptor instead.
func (*UpdatePhoneNumberResponse) GetOk ¶
func (x *UpdatePhoneNumberResponse) GetOk() bool
func (*UpdatePhoneNumberResponse) ProtoMessage ¶
func (*UpdatePhoneNumberResponse) ProtoMessage()
func (*UpdatePhoneNumberResponse) ProtoReflect ¶
func (x *UpdatePhoneNumberResponse) ProtoReflect() protoreflect.Message
func (*UpdatePhoneNumberResponse) Reset ¶
func (x *UpdatePhoneNumberResponse) Reset()
func (*UpdatePhoneNumberResponse) String ¶
func (x *UpdatePhoneNumberResponse) String() string
type Validation ¶
type Validation struct { Validated bool `protobuf:"varint,20,opt,name=validated,proto3" json:"validated,omitempty"` ValidationCode string `protobuf:"bytes,21,opt,name=validation_code,json=validationCode,proto3" json:"validation_code,omitempty"` // contains filtered or unexported fields }
func (*Validation) Descriptor
deprecated
func (*Validation) Descriptor() ([]byte, []int)
Deprecated: Use Validation.ProtoReflect.Descriptor instead.
func (*Validation) GetValidated ¶
func (x *Validation) GetValidated() bool
func (*Validation) GetValidationCode ¶
func (x *Validation) GetValidationCode() string
func (*Validation) ProtoMessage ¶
func (*Validation) ProtoMessage()
func (*Validation) ProtoReflect ¶
func (x *Validation) ProtoReflect() protoreflect.Message
func (*Validation) Reset ¶
func (x *Validation) Reset()
func (*Validation) String ¶
func (x *Validation) String() string