Documentation ¶
Index ¶
- func GetTotalAssetSourceCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertAssetSource(dbConnPgx utils.PgxIface, assetSource *AssetSource) (int, int, error)
- func InsertAssetSources(dbConnPgx utils.PgxIface, assetSources []AssetSource) error
- func RemoveAssetSource(dbConnPgx utils.PgxIface, sourceID, assetID *int) error
- func UpdateAssetSource(dbConnPgx utils.PgxIface, assetSource *AssetSource) error
- type AssetSource
- func GetAllAssetSourceBySourceAndAssetType(dbConnPgx utils.PgxIface, sourceID, assetTypeID *int) ([]AssetSource, error)
- func GetAssetSource(dbConnPgx utils.PgxIface, sourceID, assetID *int) (*AssetSource, error)
- func GetAssetSourceByTicker(dbConnPgx utils.PgxIface, sourceID *int, sourceIdentifier string) (*AssetSource, error)
- func GetAssetSourceList(dbConnPgx utils.PgxIface, assetIds []int, sourceIds []int) ([]AssetSource, error)
- func GetAssetSourceListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]AssetSource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertAssetSource ¶
func InsertAssetSources ¶
func InsertAssetSources(dbConnPgx utils.PgxIface, assetSources []AssetSource) error
func RemoveAssetSource ¶
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 GetAssetSourceList ¶
func GetAssetSourceListByPagination ¶
func GetAssetSourceListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]AssetSource, error)
for refinedev
Click to show internal directories.
Click to hide internal directories.