account

package
v1.3.63 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertAccount

func InsertAccount(account Account) (int, error)

func RemoveAccount

func RemoveAccount(accountID int) error

func UpdateAccount

func UpdateAccount(account Account) error

Types

type Account

type Account struct {
	ID             *int      `json:"id"`
	UUID           string    `json:"uuid"`
	Name           string    `json:"name"`
	AlternateName  string    `json:"alternateName"`
	Address        string    `json:"address"`
	NameFromSource string    `json:"nameFromSource"`
	PortfolioID    *int      `json:"portfolioId"`
	SourceID       *int      `json:"sourceId"`
	AccountTypeID  *int      `json:"accountTypeId"`
	Description    string    `json:"description"`
	CreatedBy      string    `json:"createdBy"`
	CreatedAt      time.Time `json:"createdAt"`
	UpdatedBy      string    `json:"updatedBy"`
	UpdatedAt      time.Time `json:"updatedAt"`
	ChainID        *int      `json:"chainId"`
}

Asset

func GetAccount

func GetAccount(accountID int) (*Account, error)

func GetAccountByAddress

func GetAccountByAddress(address string) (*Account, error)

func GetAccountByAlternateName

func GetAccountByAlternateName(altenateName string) (*Account, error)

func GetAccountList

func GetAccountList(ids []int) ([]Account, error)

Jump to

Keyboard shortcuts

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