assetsource

package
v1.3.57 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalAssetSourceCount added in v1.3.48

func GetTotalAssetSourceCount() (*int, error)

func InsertAssetSource

func InsertAssetSource(assetSource AssetSource) (int, int, error)

func RemoveAssetSource

func RemoveAssetSource(sourceID int, assetID int) error

func UpdateAssetSource

func UpdateAssetSource(assetSource AssetSource) error

Types

type AssetSource

type AssetSource struct {
	SourceID         *int           `json:"sourceId"`
	AssetID          *int           `json:"assetId"`
	UUID             string         `json:"uuid"`
	Name             string         `json:"name"`
	AlternateName    string         `json:"alternateName"`
	SourceIdentifier string         `json:"sourceIdentifier"`
	Description      string         `json:"description"`
	SourceData       types.JSONText `json:"sourceData"`
	CreatedBy        string         `json:"createdBy"`
	CreatedAt        time.Time      `json:"createdAt"`
	UpdatedBy        string         `json:"updatedBy"`
	UpdatedAt        time.Time      `json:"updatedAt"`
}

Asset

func GetAllAssetSourceBySourceAndAssetType

func GetAllAssetSourceBySourceAndAssetType(sourceID int, assetTypeID int) ([]AssetSource, error)

func GetAssetSource

func GetAssetSource(sourceID int, assetID int) (*AssetSource, error)

func GetAssetSourceByTicker

func GetAssetSourceByTicker(sourceID int, sourceIdentifier string) (*AssetSource, error)

func GetAssetSourceList

func GetAssetSourceList(assetIds []int, sourceIds []int) ([]AssetSource, error)

func GetAssetSourceListByPagination added in v1.3.48

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

for refinedev

func GetTopTenAssetSources

func GetTopTenAssetSources() ([]AssetSource, error)

Jump to

Keyboard shortcuts

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