cli

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: AGPL-3.0 Imports: 14 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

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

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

Functions

func BuildServer added in v1.5.0

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

func HandleSignals

func HandleSignals(s *server.Server)

Types

type CliOptions added in v1.5.0

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