handlers

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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 (h MobilityAccountsHandler) GetAccountUsername(username string, namespace string) (account *storage.Account, err error)

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) Login

func (h MobilityAccountsHandler) Login(username string, password string, namespace string) (*storage.Account, error)

func (MobilityAccountsHandler) Register

func (h MobilityAccountsHandler) Register(account storage.Account) (*storage.Account, error)

func (MobilityAccountsHandler) UpdateData

func (h MobilityAccountsHandler) UpdateData(accountid string, datas map[string]any) (*storage.Account, error)

func (MobilityAccountsHandler) UpdatePhoneNumber

func (h MobilityAccountsHandler) UpdatePhoneNumber(accountid, phone_number string, verified bool, verification_code string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL