Documentation ¶
Index ¶
- func GetTotalPoolsCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertPool(dbConnPgx utils.PgxIface, pool *Pool) (int, string, error)
- func InsertPools(dbConnPgx utils.PgxIface, pools []Pool) error
- func RemovePool(dbConnPgx utils.PgxIface, poolID *int) error
- func UpdatePool(dbConnPgx utils.PgxIface, pool *Pool) error
- type Pool
- func GetPool(dbConnPgx utils.PgxIface, poolID *int) (*Pool, error)
- func GetPoolListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]Pool, error)
- func GetPools(dbConnPgx utils.PgxIface, ids []int) ([]Pool, error)
- func GetPoolsByStrategyID(dbConnPgx utils.PgxIface, strategyID *int) ([]Pool, error)
- func GetPoolsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]Pool, error)
- func GetStartAndEndDateDiffPools(dbConnPgx utils.PgxIface, diffInDate *int) ([]Pool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pool ¶
type Pool struct { ID *int `json:"id" db:"id"` //1 TargetAssetID *int `json:"targetAssetId" db:"target_asset_id"` //2 StrategyID *int `json:"strategyId" db:"strategy_id"` //3 AccountID *int `json:"accountId" db:"account_id"` //4 UUID string `json:"uuid" db:"uuid"` //5 Name string `json:"name" db:"name"` //6 AlternateName string `json:"alternateName" db:"alternate_name"` //7 StartDate *time.Time `json:"startDate" db:"start_date"` //8 EndDate *time.Time `json:"endDate" db:"end_date"` //9 Description string `json:"description" db:"description"` //10 ChainID *int `json:"chainId" db:"chain_id"` //11 FrequencyID *int `json:"frequencyId" db:"frequency_id"` //12 CreatedBy string `json:"createdBy" db:"created_by"` //13 CreatedAt time.Time `json:"createdAt" db:"created_at"` //14 UpdatedBy string `json:"updatedBy" db:"updated_by"` //15 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //16 }
func GetPoolListByPagination ¶
func GetPoolListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]Pool, error)
for refinedev
func GetPoolsByStrategyID ¶
func GetPoolsByUUIDs ¶
Click to show internal directories.
Click to hide internal directories.