worker

package
v0.0.0-...-ffe04fe Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppName ...
	AppName string = "btrade"

	// AppDescShort ...
	AppDescShort string = "bot auto trade"

	// AppDescLong ...
	AppDescLong string = `bot auto trade in binary option`
)

Variables

View Source
var (
	// CmdUse ...
	CmdUse = "worker"

	// CmdAliases ...
	CmdAliases = []string{"w"}

	// App ...
	App *appcontext.AppContext

	// ConfigPaths ...
	ConfigPaths = [...]string{
		"./*.toml",
		"./params/*.toml",
		"/opt/" + AppName + "/params/*.toml",
	}
)

Functions

func InitConfig

func InitConfig()

InitConfig ...

func InitDependencies

func InitDependencies()

InitDependencies ...

func Shutdown

func Shutdown()

Shutdown ...

func Start

func Start()

Start ...

Types

type CronContext

type CronContext struct{}

CronContext defines worker context

Jump to

Keyboard shortcuts

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