Documentation ¶
Index ¶
- func BoolEnvFlag(name string, usage string, envName ...string) cli.Flag
- func BoolFlag(name string, usage string) cli.Flag
- func DurationEnvFlag(name string, defaultVal time.Duration, usage string, envName ...string) cli.Flag
- func DurationFlag(name string, defaultVal time.Duration, usage string) cli.Flag
- func Float64EnvFlag(name string, defaultVal float64, usage string, envName ...string) cli.Flag
- func Float64Flag(name string, defaultVal float64, usage string) cli.Flag
- func IntEnvFlag(name string, defaultVal int, usage string, envName ...string) cli.Flag
- func IntFlag(name string, defaultVal int, usage string) cli.Flag
- func IntSliceEnvFlag(name string, defaultVal []int, usage string, envName ...string) cli.Flag
- func IntSliceFlag(name string, defaultVal []int, usage string) cli.Flag
- func MustRun(app *App)
- func MustStart(version string, asyncRunnerCount int, init func(app *App) error)
- func StringEnvFlag(name string, defaultVal string, usage string, envName ...string) cli.Flag
- func StringFlag(name string, defaultVal string, usage string) cli.Flag
- func StringSliceEnvFlag(name string, defaultVal []string, usage string, envName ...string) cli.Flag
- func StringSliceFlag(name string, defaultVal []string, usage string) cli.Flag
- type App
- func (app *App) AddBoolFlag(name string, usage string) *App
- func (app *App) AddDurationFlag(name string, defaultVal time.Duration, usage string) *App
- func (app *App) AddFlags(flags ...cli.Flag) *App
- func (app *App) AddFloat64Flag(name string, defaultVal float64, usage string) *App
- func (app *App) AddIntFlag(name string, defaultVal int, usage string) *App
- func (app *App) AddIntSliceFlag(name string, defaultVal []int, usage string) *App
- func (app *App) AddStringFlag(name string, defaultVal string, usage string) *App
- func (app *App) AddStringSliceFlag(name string, defaultVal []string, usage string) *App
- func (app *App) Async(asyncJobs ...interface{}) *App
- func (app *App) BeforeServerStop(f func(cc infra.Resolver) error) *App
- func (app *App) Binder() infra.Binder
- func (app *App) Cli() *cli.App
- func (app *App) Container() infra.Container
- func (app *App) Glacier() infra.Glacier
- func (app *App) Graceful(builder func() infra.Graceful) *App
- func (app *App) Init(f func(c infra.FlagContext) error) *App
- func (app *App) MustResolve(resolver interface{})
- func (app *App) OnServerReady(ffs ...interface{})
- func (app *App) PreBind(fn func(binder infra.Binder)) *App
- func (app *App) Prototype(ins ...interface{}) *App
- func (app *App) Provider(providers ...infra.Provider) *App
- func (app *App) Resolve(resolver interface{}) error
- func (app *App) Resolver() infra.Resolver
- func (app *App) Run(args []string) error
- func (app *App) Service(services ...infra.Service) *App
- func (app *App) Singleton(ins ...interface{}) *App
- func (app *App) Start(cliCtx infra.FlagContext) error
- func (app *App) WithAuthor(name, email string) *App
- func (app *App) WithAuthors(authors ...*cli.Author) *App
- func (app *App) WithCLIOptions(fn func(cliAPP *cli.App)) *App
- func (app *App) WithDescription(desc string) *App
- func (app *App) WithLogger(logger infra.Logger) *App
- func (app *App) WithName(name string) *App
- func (app *App) WithShutdownTimeoutFlag(timeout time.Duration) *App
- func (app *App) WithUsage(usage string) *App
- func (app *App) WithUsageText(usageText string) *App
- func (app *App) WithYAMLFlag(flagName string) *App
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolEnvFlag ¶
func DurationEnvFlag ¶
func Float64EnvFlag ¶
func Float64Flag ¶
func IntEnvFlag ¶
func IntSliceEnvFlag ¶
func IntSliceFlag ¶
func StringEnvFlag ¶
func StringFlag ¶
func StringSliceEnvFlag ¶
func StringSliceFlag ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func CreateAndInit ¶
func (*App) AddDurationFlag ¶
func (*App) AddFloat64Flag ¶
func (*App) AddIntSliceFlag ¶
func (*App) AddStringFlag ¶
func (*App) AddStringSliceFlag ¶
func (*App) BeforeServerStop ¶
func (*App) MustResolve ¶
func (app *App) MustResolve(resolver interface{})
func (*App) OnServerReady ¶
func (app *App) OnServerReady(ffs ...interface{})
func (*App) WithAuthor ¶
func (*App) WithAuthors ¶
func (*App) WithCLIOptions ¶
func (*App) WithDescription ¶
func (*App) WithShutdownTimeoutFlag ¶ added in v1.1.1
func (*App) WithUsageText ¶
func (*App) WithYAMLFlag ¶
Click to show internal directories.
Click to hide internal directories.