Documentation ¶
Index ¶
- type MobilityAccountsHandler
- func (h MobilityAccountsHandler) ChangePassword(accountid string, newpassword string) error
- func (h MobilityAccountsHandler) GetAccount(id string) (account *storage.Account, err error)
- func (h MobilityAccountsHandler) GetAccountUsername(username string, namespace string) (account *storage.Account, err error)
- func (h MobilityAccountsHandler) GetAccounts(namespaces []string) (accounts []storage.Account, err error)
- func (h MobilityAccountsHandler) GetAccountsBatch(accountIds []string) (accounts []storage.Account, err error)
- func (h MobilityAccountsHandler) Login(username string, password string, namespace string) (*storage.Account, error)
- func (h MobilityAccountsHandler) Register(account storage.Account) (*storage.Account, error)
- func (h MobilityAccountsHandler) UpdateData(accountid string, datas map[string]any) (*storage.Account, error)
- func (h MobilityAccountsHandler) UpdatePhoneNumber(accountid, phone_number string, verified bool, verification_code string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MobilityAccountsHandler ¶
type MobilityAccountsHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(cfg *viper.Viper, storage storage.Storage) MobilityAccountsHandler
func (MobilityAccountsHandler) ChangePassword ¶
func (h MobilityAccountsHandler) ChangePassword(accountid string, newpassword string) error
func (MobilityAccountsHandler) GetAccount ¶
func (h MobilityAccountsHandler) GetAccount(id string) (account *storage.Account, err error)
func (MobilityAccountsHandler) GetAccountUsername ¶
func (MobilityAccountsHandler) GetAccounts ¶
func (h MobilityAccountsHandler) GetAccounts(namespaces []string) (accounts []storage.Account, err error)
func (MobilityAccountsHandler) GetAccountsBatch ¶
func (h MobilityAccountsHandler) GetAccountsBatch(accountIds []string) (accounts []storage.Account, err error)
func (MobilityAccountsHandler) UpdateData ¶
func (MobilityAccountsHandler) UpdatePhoneNumber ¶
func (h MobilityAccountsHandler) UpdatePhoneNumber(accountid, phone_number string, verified bool, verification_code string) error
Click to show internal directories.
Click to hide internal directories.