Versions in this module Expand all Collapse all v0 v0.5.3 Dec 8, 2023 v0.5.2 Nov 26, 2023 Changes in this version + const NonOptionArgs + const Version + type Application interface + Context func() Context + Run func(args ...string) + func New() Application + type Arguments struct + func (a *Arguments) ContainsOption(name string) bool + func (a *Arguments) NonOptionArgs() []string + func (a *Arguments) OptionNames() []string + func (a *Arguments) OptionValues(name string) []string + type ArgumentsPropertySource struct + func (s *ArgumentsPropertySource) ContainsProperty(name string) bool + func (s *ArgumentsPropertySource) Name() string + func (s *ArgumentsPropertySource) NonOptionArgs() []string + func (s *ArgumentsPropertySource) OptionValues(name string) []string + func (s *ArgumentsPropertySource) Property(name string) (any, bool) + func (s *ArgumentsPropertySource) PropertyNames() []string + func (s *ArgumentsPropertySource) PropertyOrDefault(name string, defaultValue any) any + func (s *ArgumentsPropertySource) Source() any + type Context interface + ApplicationName func() string + Container func() container.Container + DisplayName func() string + Environment func() env.Environment + Start func() error + StartupTime func() time.Time + type ContextCustomizer interface + CustomizeContext func(ctx Context) error + type ContextLoadedEvent struct + func (e *ContextLoadedEvent) Application() Application + func (e *ContextLoadedEvent) Args() *Arguments + func (e *ContextLoadedEvent) Context() Context + func (e *ContextLoadedEvent) EventSource() any + func (e *ContextLoadedEvent) Time() time.Time + type ContextPreparedEvent struct + func (e *ContextPreparedEvent) Application() Application + func (e *ContextPreparedEvent) Args() *Arguments + func (e *ContextPreparedEvent) Context() Context + func (e *ContextPreparedEvent) EventSource() any + func (e *ContextPreparedEvent) Time() time.Time + type ContextStartedEvent struct + func (e *ContextStartedEvent) Application() Application + func (e *ContextStartedEvent) Args() *Arguments + func (e *ContextStartedEvent) Context() Context + func (e *ContextStartedEvent) EventSource() any + func (e *ContextStartedEvent) Time() time.Time + type DefaultLifecycleProcessor struct + func NewDefaultLifecycleProcessor() *DefaultLifecycleProcessor + func (p *DefaultLifecycleProcessor) IsRunning() bool + func (p *DefaultLifecycleProcessor) Start() error + func (p *DefaultLifecycleProcessor) Stop() error + type EnvironmentPreparedEvent struct + func (e *EnvironmentPreparedEvent) Application() Application + func (e *EnvironmentPreparedEvent) Args() *Arguments + func (e *EnvironmentPreparedEvent) Context() Context + func (e *EnvironmentPreparedEvent) Environment() env.Environment + func (e *EnvironmentPreparedEvent) EventSource() any + func (e *EnvironmentPreparedEvent) Time() time.Time + type FailedEvent struct + func (e *FailedEvent) Application() Application + func (e *FailedEvent) Args() *Arguments + func (e *FailedEvent) Context() Context + func (e *FailedEvent) Err() error + func (e *FailedEvent) EventSource() any + func (e *FailedEvent) Time() time.Time + type Lifecycle interface + IsRunning func() bool + Start func() error + Stop func(ctx context.Context) error + type LifecycleProcessor interface + IsRunning func() bool + Start func() error + Stop func() error + type LifecycleProperties struct + ShutdownTimeout time.Duration + type ReadyEvent struct + func (e *ReadyEvent) Application() Application + func (e *ReadyEvent) Args() *Arguments + func (e *ReadyEvent) Context() Context + func (e *ReadyEvent) EventSource() any + func (e *ReadyEvent) Time() time.Time + func (e *ReadyEvent) TimeTaken() time.Duration + type StartedEvent struct + func (e *StartedEvent) Application() Application + func (e *StartedEvent) Args() *Arguments + func (e *StartedEvent) Context() Context + func (e *StartedEvent) EventSource() any + func (e *StartedEvent) Time() time.Time + func (e *StartedEvent) TimeTaken() time.Duration + type StartingEvent struct + func (e *StartingEvent) Application() Application + func (e *StartingEvent) Args() *Arguments + func (e *StartingEvent) Context() Context + func (e *StartingEvent) EventSource() any + func (e *StartingEvent) Time() time.Time + type StartupListener interface + OnContextLoaded func(ctx Context) + OnContextPrepared func(ctx Context) + OnContextStarted func(ctx Context) + OnEnvironmentPrepared func(ctx Context, environment env.Environment) + OnFailed func(ctx Context, err error) + OnReady func(ctx Context, timeTaken time.Duration) + OnStarted func(ctx Context, timeTaken time.Duration) + OnStarting func(ctx Context) + type SystemEnvironmentPropertySource struct + func (s *SystemEnvironmentPropertySource) ContainsProperty(name string) bool + func (s *SystemEnvironmentPropertySource) Name() string + func (s *SystemEnvironmentPropertySource) Property(name string) (any, bool) + func (s *SystemEnvironmentPropertySource) PropertyNames() []string + func (s *SystemEnvironmentPropertySource) PropertyOrDefault(name string, defaultValue any) any + func (s *SystemEnvironmentPropertySource) Source() any