cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MPL-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Commands is the mapping of all the available commands.

Functions

func MakeSigUSR2Ch

func MakeSigUSR2Ch() chan struct{}

MakeSigUSR2Ch returns a channel that can be used for SIGUSR2 goroutine logging. This channel will send a message for every SIGUSR2 received.

func MakeSighupCh

func MakeSighupCh() chan struct{}

MakeSighupCh returns a channel that can be used for SIGHUP reloading. This channel will send a message for every SIGHUP received.

func Run

func Run(args []string) int

func RunCustom

func RunCustom(args []string, runOpts *RunOptions) int

RunCustom allows passing in a base command template to pass to other commands. Currently, this is only used for setting a custom token helper.

Types

type RunOptions

type RunOptions struct {
	Stdout  io.Writer
	Stderr  io.Writer
	Address string
}

Jump to

Keyboard shortcuts

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