application

package
v1.24.0-basal-automated.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: BSD-3-Clause Imports: 14 Imported by: 13

Documentation

Index

Constants

View Source
const (
	Success = 0
	Failure = 1
)

Variables

This section is empty.

Functions

func Run

func Run(runner Runner, err error) int

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func New

func New(prefix string, scopes ...string) (*Application, error)

func (*Application) ConfigReporter

func (a *Application) ConfigReporter() config.Reporter

func (*Application) Initialize

func (a *Application) Initialize() error

func (*Application) Logger

func (a *Application) Logger() log.Logger

func (*Application) Name

func (a *Application) Name() string

func (*Application) Prefix added in v1.22.0

func (a *Application) Prefix() string

func (*Application) Terminate

func (a *Application) Terminate()

func (*Application) UserAgent added in v1.22.0

func (a *Application) UserAgent() string

func (*Application) VersionReporter

func (a *Application) VersionReporter() version.Reporter

type Runner

type Runner interface {
	Initialize() error
	Terminate()

	Run() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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