entry

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: AGPL-3.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCmdJob added in v0.1.31

func AddCmdJob(job *CmdJob)

func AddGroup added in v0.1.31

func AddGroup(name, help string)

func LoadKLinesToDB

func LoadKLinesToDB(args *config.CmdArgs) *errs.Error

func RunBackTest

func RunBackTest(args *config.CmdArgs) *errs.Error

func RunCmd

func RunCmd()

func RunDownData

func RunDownData(args *config.CmdArgs) *errs.Error

func RunKlineAdjFactors

func RunKlineAdjFactors(args *config.CmdArgs) *errs.Error

func RunKlineCorrect

func RunKlineCorrect(args *config.CmdArgs) *errs.Error

func RunSpider

func RunSpider(args *config.CmdArgs) *errs.Error

func RunTrade

func RunTrade(args *config.CmdArgs) *errs.Error

Types

type CmdJob added in v0.1.31

type CmdJob struct {
	Name    string
	Parent  string
	Run     FuncEntry
	Options []string
	RunRaw  func(args []string) error
	Help    string
}

func GetCmdJob added in v0.1.31

func GetCmdJob(name, parent string) *CmdJob

GetCmdJob get command job by name and parent

type FuncEntry

type FuncEntry = func(args *config.CmdArgs) *errs.Error

type FuncGetEntry

type FuncGetEntry = func(name string) (FuncEntry, []string)

type JobGroup added in v0.1.31

type JobGroup struct {
	Name string
	Help string
	Jobs map[string]*CmdJob
}

func GetGroup added in v0.1.31

func GetGroup(name string) *JobGroup

GetGroup get command group by name

Jump to

Keyboard shortcuts

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