assetsource

package
v2.0.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalAssetSourceCount

func GetTotalAssetSourceCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertAssetSource

func InsertAssetSource(dbConnPgx utils.PgxIface, assetSource *AssetSource) (int, int, error)

func InsertAssetSources

func InsertAssetSources(dbConnPgx utils.PgxIface, assetSources []AssetSource) error

func RemoveAssetSource

func RemoveAssetSource(dbConnPgx utils.PgxIface, sourceID, assetID *int) error

func UpdateAssetSource

func UpdateAssetSource(dbConnPgx utils.PgxIface, assetSource *AssetSource) error

Types

type AssetSource

type AssetSource struct {
	SourceID         *int           `json:"sourceId" db:"source_id"`                 //1
	AssetID          *int           `json:"assetId" db:"asset_id"`                   //2
	UUID             string         `json:"uuid" db:"uuid"`                          //3
	Name             string         `json:"name" db:"name"`                          //4
	AlternateName    string         `json:"alternateName" db:"alternate_name"`       //5
	SourceIdentifier string         `json:"sourceIdentifier" db:"source_identifier"` //6
	Description      string         `json:"description" db:"description"`            //7
	SourceData       types.JSONText `json:"sourceData" db:"source_data"`             //8
	CreatedBy        string         `json:"createdBy" db:"created_by"`               //9
	CreatedAt        time.Time      `json:"createdAt" db:"created_at"`               //10
	UpdatedBy        string         `json:"updatedBy" db:"updated_by"`               //11
	UpdatedAt        time.Time      `json:"updatedAt" db:"updated_at"`               //12
}

Asset

func GetAllAssetSourceBySourceAndAssetType

func GetAllAssetSourceBySourceAndAssetType(dbConnPgx utils.PgxIface, sourceID, assetTypeID *int) ([]AssetSource, error)

func GetAssetSource

func GetAssetSource(dbConnPgx utils.PgxIface, sourceID, assetID *int) (*AssetSource, error)

func GetAssetSourceByTicker

func GetAssetSourceByTicker(dbConnPgx utils.PgxIface, sourceID *int, sourceIdentifier string) (*AssetSource, error)

func GetAssetSourceList

func GetAssetSourceList(dbConnPgx utils.PgxIface, assetIds []int, sourceIds []int) ([]AssetSource, error)

func GetAssetSourceListByPagination

func GetAssetSourceListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]AssetSource, error)

for refinedev

Jump to

Keyboard shortcuts

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