strategy

package
v1.3.63 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertStrategies

func InsertStrategies(strategies []Strategy) error

func InsertStrategy

func InsertStrategy(strategy Strategy) (int, error)

func RemoveStrategy

func RemoveStrategy(strategyID int) error

func UpdateStrategy

func UpdateStrategy(strategy Strategy) error

Types

type Strategy

type Strategy struct {
	ID             *int       `json:"id"`
	UUID           string     `json:"uuid"`
	Name           string     `json:"name"`
	AlternateName  string     `json:"alternateName"`
	StartDate      *time.Time `json:"startDate"`
	EndDate        *time.Time `json:"endDate"`
	Description    string     `json:"description"`
	StrategyTypeID *int       `json:"strategyTypeId"`
	CreatedBy      string     `json:"createdBy"`
	CreatedAt      time.Time  `json:"createdAt"`
	UpdatedBy      string     `json:"updatedBy"`
	UpdatedAt      time.Time  `json:"updatedAt"`
}

Strategy

func GetStartAndEndDateDiffStrategies

func GetStartAndEndDateDiffStrategies(diffInDate int) ([]Strategy, error)

func GetStrategies

func GetStrategies(ids []int) ([]Strategy, error)

func GetStrategiesByUUIDs

func GetStrategiesByUUIDs(UUIDList []string) ([]Strategy, error)

func GetStrategy

func GetStrategy(strategyID int) (*Strategy, error)

func GetTopTenStrategies

func GetTopTenStrategies() ([]Strategy, error)

Jump to

Keyboard shortcuts

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