cmd

package
v0.0.0-...-5d32e84 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RESTCommand = &cli.Command{
	Name:   "rest",
	Usage:  "start a http rest api",
	Action: runRESTCommand,
	Flags: []cli.Flag{
		&cli.StringFlag{Name: addrProp, Usage: "http rest server listen addr", EnvVars: []string{"ADDR"}, Value: "0.0.0.0:8080"},
		&cli.StringFlag{Name: dbNameProp, Usage: "name of the database", EnvVars: []string{"DB_NAME"}, Value: "plotrader.db"},
		&cli.StringFlag{Name: dbURIProp, Usage: "uri of the database", EnvVars: []string{"DB_URI"}, Value: "localhost"},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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