assetsource

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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() ([]AssetSource, error)

func GetTopTenAssetSources

func GetTopTenAssetSources() ([]AssetSource, error)

Jump to

Keyboard shortcuts

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