stepasset

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertStepAsset

func InsertStepAsset(stepAsset StepAsset) (int, error)

func InsertStepAssets

func InsertStepAssets(stepAssets []StepAsset) error

func RemoveStepAsset

func RemoveStepAsset(stepAssetID int) error

func UpdateStepAsset

func UpdateStepAsset(stepAsset StepAsset) error

Types

type StepAsset

type StepAsset struct {
	ID              *int       `json:"id"`
	StepID          *int       `json:"stepId"`
	AssetID         *int       `json:"assetId"`
	SwapAssetID     *int       `json:"swapAssetId"`
	TargetPoolID    *int       `json:"targetPoolId"`
	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"`
	ActionParameter *float64   `json:"actionParameter"`
	CreatedBy       string     `json:"createdBy"`
	CreatedAt       time.Time  `json:"createdAt"`
	UpdatedBy       string     `json:"updatedBy"`
	UpdatedAt       time.Time  `json:"updatedAt"`
}

func GetStartAndEndDateDiffStepAssets

func GetStartAndEndDateDiffStepAssets(diffInDate int) ([]StepAsset, error)

func GetStepAsset

func GetStepAsset(stepAssetID int) (*StepAsset, error)

func GetStepAssets

func GetStepAssets(ids []int) ([]StepAsset, error)

func GetStepAssetsByUUIDs

func GetStepAssetsByUUIDs(UUIDList []string) ([]StepAsset, error)

func GetTopTenStrategies

func GetTopTenStrategies() ([]StepAsset, error)

Jump to

Keyboard shortcuts

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