Documentation ¶
Index ¶
- func InsertAssetSource(assetSource AssetSource) (int, int, error)
- func RemoveAssetSource(sourceID int, assetID int) error
- func UpdateAssetSource(assetSource AssetSource) error
- type AssetSource
- func GetAllAssetSourceBySourceAndAssetType(sourceID int, assetTypeID int) ([]AssetSource, error)
- func GetAssetSource(sourceID int, assetID int) (*AssetSource, error)
- func GetAssetSourceByTicker(sourceID int, sourceIdentifier string) (*AssetSource, error)
- func GetAssetSourceList() ([]AssetSource, error)
- func GetTopTenAssetSources() ([]AssetSource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertAssetSource ¶
func InsertAssetSource(assetSource AssetSource) (int, int, error)
func RemoveAssetSource ¶
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)
Click to show internal directories.
Click to hide internal directories.