Documentation ¶
Index ¶
- func GetTotalAccountsCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertAccount(dbConnPgx utils.PgxIface, account *Account) (int, error)
- func InsertAccounts(dbConnPgx utils.PgxIface, accounts []Account) error
- func RemoveAccount(dbConnPgx utils.PgxIface, accountID *int) error
- func UpdateAccount(dbConnPgx utils.PgxIface, account *Account) error
- type Account
- func GetAccount(dbConnPgx utils.PgxIface, accountID *int) (*Account, error)
- func GetAccountByAddress(dbConnPgx utils.PgxIface, address string) (*Account, error)
- func GetAccountByAlternateName(dbConnPgx utils.PgxIface, altenateName string) (*Account, error)
- func GetAccountList(dbConnPgx utils.PgxIface, ids []int) ([]Account, error)
- func GetAccountListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]Account, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct { ID *int `json:"id" db:"id"` //1 UUID string `json:"uuid" db:"uuid"` //2 Name string `json:"name" db:"name"` //3 AlternateName string `json:"alternateName" db:"alternate_name"` //4 Address string `json:"address" db:"address"` //5 NameFromSource string `json:"nameFromSource" db:"name_from_source"` //6 PortfolioID *int `json:"portfolioId" db:"portfolio_id"` //7 SourceID *int `json:"sourceId" db:"source_id"` //8 AccountTypeID *int `json:"accountTypeId" db:"account_type_id"` //9 Description string `json:"description" db:"description"` //10 CreatedBy string `json:"createdBy" db:"created_by"` //11 CreatedAt time.Time `json:"createdAt" db:"created_at"` //12 UpdatedBy string `json:"updatedBy" db:"updated_by"` //13 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //14 ChainID *int `json:"chainId" db:"chain_id"` //15 }
Asset
func GetAccountByAddress ¶
Click to show internal directories.
Click to hide internal directories.