application

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: Apache-2.0 Imports: 15 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

func NewApplication

func NewApplication(runner func(ctx *context.WaitStopContext) error, opts ...Option) *Application

func (*Application) AddCommand

func (app *Application) AddCommand(cmd ...*cobra.Command)

func (*Application) Context

func (app *Application) Context() *context.WaitStopContext

func (*Application) Start

func (app *Application) Start()

func (*Application) WaitStop

func (app *Application) WaitStop(clearFunc func(ctx *context.WaitStopContext) error)

type Option

type Option func(app *Application)

func WithApollo

func WithApollo(conf *apollo.ApolloBaseConfig) Option

func WithConfig

func WithConfig(conf ...interface{}) Option

Jump to

Keyboard shortcuts

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