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
Click to show internal directories.
Click to hide internal directories.