cli

package
v0.9.7-1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Term os.Signal = syscall.SIGTERM
	Hup  os.Signal = syscall.SIGHUP

	SignalHandlers = map[os.Signal]func(*server.Server){
		Term:         exit,
		os.Interrupt: exit,
		Hup:          reload,
	}
)

Functions

func BuildServer

func BuildServer(opts CliOptions) (*server.Server, func(), error)

func HandleSignals

func HandleSignals(s *server.Server)

Types

type CliOptions

type CliOptions struct {
	CmdBinding       string
	WebBinding       string
	Environment      string
	ConfigDirectory  string
	LogLevel         string
	StorageDirectory string
}

func ParseArguments

func ParseArguments() CliOptions

Jump to

Keyboard shortcuts

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