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, t *testing.T) error, t *testing.T, 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 WithConfig ¶
func WithConfigCenter ¶ added in v1.4.7
func WithConfigCenter(configCenterType enum.ConfigCenterType, opt any) Option
func WithInitializer ¶
Click to show internal directories.
Click to hide internal directories.