accounts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOrgAdmin

func CheckOrgAdmin(add, org, ult string) (bool, error)

func CreateAccount

func CreateAccount(password, name string) (accounts.Account, error)

func GetAccountCount

func GetAccountCount() (*big.Int, error)

func GetAccountDetails

func GetAccountDetails(acct string) (model.AccountDetails, error)

func GetAccountDetailsFromIndex

func GetAccountDetailsFromIndex(index int64) (model.AccountDetails, error)

func GetAccountOrgDetails

func GetAccountOrgDetails(acct string) (model.AccountInfo, error)

func GetBal

func GetBal(add string) (*big.Int, error)

func GetBalKeyfile

func GetBalKeyfile(keyfile, password string) (*big.Int, error)

func GetRoleForAccount

func GetRoleForAccount(acct string) (string, error)

func GetStatusOfAccount

func GetStatusOfAccount(acct string) (model.Account, error)

Account Status types 0 - Not in list 1 - Account pending approval 2 - Active 3 - Inactive 4 - Suspended 5 - Blacklisted 6 - Revoked 7 - Recovery Initiated for blacklisted accounts and pending approval

from network admins

func OrgAdminExists

func OrgAdminExists(org string) (bool, error)

func ValidatedAccount

func ValidatedAccount(acct, org string) (bool, error)

returns bool true if the account does not exists or exists and belongs passed org

Types

This section is empty.

Jump to

Keyboard shortcuts

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