Documentation ¶
Index ¶
- func InsertPool(pool Pool) (int, error)
- func InsertPools(pools []Pool) error
- func RemovePool(poolID int) error
- func UpdatePool(pool Pool) error
- type Pool
- func GetPool(poolID int) (*Pool, error)
- func GetPools(ids []int) ([]Pool, error)
- func GetPoolsByStrategyID(strategyID *int) ([]Pool, error)
- func GetPoolsByUUIDs(UUIDList []string) ([]Pool, error)
- func GetStartAndEndDateDiffPools(diffInDate int) ([]Pool, error)
- func GetTopTenStrategies() ([]Pool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertPool ¶
func InsertPools ¶
func RemovePool ¶
func UpdatePool ¶
Types ¶
type Pool ¶
type Pool struct { ID *int `json:"id"` TargetAssetID *int `json:"targetAssetId"` StrategyID *int `json:"strategyId"` AccountID *int `json:"accountId"` Name string `json:"name"` UUID string `json:"uuid"` AlternateName string `json:"alternateName"` StartDate *time.Time `json:"startDate"` EndDate *time.Time `json:"endDate"` Description string `json:"description"` ChainID *int `json:"chainId"` FrequencyID *int `json:"frequencyId"` CreatedBy string `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy string `json:"updatedBy"` UpdatedAt time.Time `json:"updatedAt"` }
func GetPoolsByStrategyID ¶ added in v1.0.3
func GetPoolsByUUIDs ¶
func GetTopTenStrategies ¶
Click to show internal directories.
Click to hide internal directories.