cmd

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VERSION = "unknown"
	COMMIT  = "unknown"
)
View Source
var Exit = os.Exit

Exit calls os.Exit by default. This variable can be replaced for testing

Functions

func Parse

func Parse(programName string, args []string, fn func(flags *flag.FlagSet))

func ShowVersion

func ShowVersion(programName string)

Types

type Config

type Config interface {
	Setup() (Starter, error)
}

type Service

type Service interface {
	Start(context.Context) error
	Ready() chan struct{}
}

type Starter

type Starter interface {
	Start(context.Context) error
	List() []Service
}

func NewStarter

func NewStarter(services ...Service) Starter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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