cli

package
v0.0.0-...-799dd52 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIParams

type CLIParams struct {
	TimeBetweenUpdatesStr string `long:"between" description:"time between game updates" default:"24h"`
	UpdateTimeStr         string `long:"time" description:"time of first update in format hh:mm" default:"02:00"`
	Host                  string `long:"host" description:"host that srv listen to" default:"127.0.0.1"`
	Post                  int    `long:"port" description:"port that srv listen to" default:"8080"`
	Debug                 bool   `short:"d" long:"debug" description:"run backend in debug mode with additional test endpoints"`
}

func ParseCLI

func ParseCLI() (*CLIParams, error)

Jump to

Keyboard shortcuts

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