pool

package
v2.0.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalPoolsCount

func GetTotalPoolsCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertPool

func InsertPool(dbConnPgx utils.PgxIface, pool *Pool) (int, string, error)

func InsertPools

func InsertPools(dbConnPgx utils.PgxIface, pools []Pool) error

func RemovePool

func RemovePool(dbConnPgx utils.PgxIface, poolID *int) error

func UpdatePool

func UpdatePool(dbConnPgx utils.PgxIface, pool *Pool) error

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 GetPool

func GetPool(dbConnPgx utils.PgxIface, poolID *int) (*Pool, error)

func GetPoolListByPagination

func GetPoolListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]Pool, error)

for refinedev

func GetPools

func GetPools(dbConnPgx utils.PgxIface, ids []int) ([]Pool, error)

func GetPoolsByStrategyID

func GetPoolsByStrategyID(dbConnPgx utils.PgxIface, strategyID *int) ([]Pool, error)

func GetPoolsByUUIDs

func GetPoolsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]Pool, error)

func GetStartAndEndDateDiffPools

func GetStartAndEndDateDiffPools(dbConnPgx utils.PgxIface, diffInDate *int) ([]Pool, error)

Jump to

Keyboard shortcuts

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