Documentation
¶
Index ¶
- Constants
- type Application
- type Arguments
- type ArgumentsPropertySource
- 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
- type ContextCustomizer
- type ContextLoadedEvent
- type ContextPreparedEvent
- type ContextStartedEvent
- type EnvironmentPreparedEvent
- 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
- type Lifecycle
- type LifecycleProperties
- type ReadyEvent
- type StartedEvent
- type StartingEvent
- type StartupListener
Constants ¶
View Source
const (
NonOptionArgs = "nonOptionArgs"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface {
Run(args ...string)
}
type ArgumentsPropertySource ¶
type ArgumentsPropertySource struct {
// contains filtered or unexported fields
}
func NewPropertySource ¶
func NewPropertySource(args Arguments) *ArgumentsPropertySource
func (*ArgumentsPropertySource) ContainsProperty ¶
func (s *ArgumentsPropertySource) ContainsProperty(name string) bool
func (*ArgumentsPropertySource) Name ¶
func (s *ArgumentsPropertySource) Name() string
func (*ArgumentsPropertySource) NonOptionArgs ¶
func (s *ArgumentsPropertySource) NonOptionArgs() []string
func (*ArgumentsPropertySource) OptionValues ¶
func (s *ArgumentsPropertySource) OptionValues(name string) []string
func (*ArgumentsPropertySource) Property ¶
func (s *ArgumentsPropertySource) Property(name string) (any, bool)
func (*ArgumentsPropertySource) PropertyNames ¶
func (s *ArgumentsPropertySource) PropertyNames() []string
func (*ArgumentsPropertySource) PropertyOrDefault ¶
func (s *ArgumentsPropertySource) PropertyOrDefault(name string, defaultValue any) any
func (*ArgumentsPropertySource) Source ¶
func (s *ArgumentsPropertySource) Source() any
type ContextCustomizer ¶
type ContextLoadedEvent ¶
type ContextLoadedEvent struct {
// contains filtered or unexported fields
}
func (*ContextLoadedEvent) Application ¶
func (e *ContextLoadedEvent) Application() Application
func (*ContextLoadedEvent) Args ¶
func (e *ContextLoadedEvent) Args() Arguments
func (*ContextLoadedEvent) Context ¶
func (e *ContextLoadedEvent) Context() Context
func (*ContextLoadedEvent) EventSource ¶
func (e *ContextLoadedEvent) EventSource() any
func (*ContextLoadedEvent) Time ¶
func (e *ContextLoadedEvent) Time() time.Time
type ContextPreparedEvent ¶
type ContextPreparedEvent struct {
// contains filtered or unexported fields
}
func (*ContextPreparedEvent) Application ¶
func (e *ContextPreparedEvent) Application() Application
func (*ContextPreparedEvent) Args ¶
func (e *ContextPreparedEvent) Args() Arguments
func (*ContextPreparedEvent) Context ¶
func (e *ContextPreparedEvent) Context() Context
func (*ContextPreparedEvent) EventSource ¶
func (e *ContextPreparedEvent) EventSource() any
func (*ContextPreparedEvent) Time ¶
func (e *ContextPreparedEvent) Time() time.Time
type ContextStartedEvent ¶
type ContextStartedEvent struct {
// contains filtered or unexported fields
}
func (*ContextStartedEvent) Application ¶
func (e *ContextStartedEvent) Application() Application
func (*ContextStartedEvent) Args ¶
func (e *ContextStartedEvent) Args() Arguments
func (*ContextStartedEvent) Context ¶
func (e *ContextStartedEvent) Context() Context
func (*ContextStartedEvent) EventSource ¶
func (e *ContextStartedEvent) EventSource() any
func (*ContextStartedEvent) Time ¶
func (e *ContextStartedEvent) Time() time.Time
type EnvironmentPreparedEvent ¶
type EnvironmentPreparedEvent struct {
// contains filtered or unexported fields
}
func (*EnvironmentPreparedEvent) Application ¶
func (e *EnvironmentPreparedEvent) Application() Application
func (*EnvironmentPreparedEvent) Args ¶
func (e *EnvironmentPreparedEvent) Args() Arguments
func (*EnvironmentPreparedEvent) Context ¶
func (e *EnvironmentPreparedEvent) Context() Context
func (*EnvironmentPreparedEvent) Environment ¶
func (e *EnvironmentPreparedEvent) Environment() env.Environment
func (*EnvironmentPreparedEvent) EventSource ¶
func (e *EnvironmentPreparedEvent) EventSource() any
func (*EnvironmentPreparedEvent) Time ¶
func (e *EnvironmentPreparedEvent) Time() time.Time
type FailedEvent ¶
type FailedEvent struct {
// contains filtered or unexported fields
}
func (*FailedEvent) Application ¶
func (e *FailedEvent) Application() Application
func (*FailedEvent) Args ¶
func (e *FailedEvent) Args() Arguments
func (*FailedEvent) Context ¶
func (e *FailedEvent) Context() Context
func (*FailedEvent) Err ¶
func (e *FailedEvent) Err() error
func (*FailedEvent) EventSource ¶
func (e *FailedEvent) EventSource() any
func (*FailedEvent) Time ¶
func (e *FailedEvent) Time() time.Time
type LifecycleProperties ¶ added in v0.0.17
type LifecycleProperties struct { property.Properties `prefix:"procyon.lifecycle"` ShutdownTimeout time.Duration `prop:"shutdown.timeout" default:"30000"` }
type ReadyEvent ¶
type ReadyEvent struct {
// contains filtered or unexported fields
}
func (*ReadyEvent) Application ¶
func (e *ReadyEvent) Application() Application
func (*ReadyEvent) Args ¶
func (e *ReadyEvent) Args() Arguments
func (*ReadyEvent) Context ¶
func (e *ReadyEvent) Context() Context
func (*ReadyEvent) EventSource ¶
func (e *ReadyEvent) EventSource() any
func (*ReadyEvent) Time ¶
func (e *ReadyEvent) Time() time.Time
func (*ReadyEvent) TimeTaken ¶
func (e *ReadyEvent) TimeTaken() time.Duration
type StartedEvent ¶
type StartedEvent struct {
// contains filtered or unexported fields
}
func (*StartedEvent) Application ¶
func (e *StartedEvent) Application() Application
func (*StartedEvent) Args ¶
func (e *StartedEvent) Args() Arguments
func (*StartedEvent) Context ¶
func (e *StartedEvent) Context() Context
func (*StartedEvent) EventSource ¶
func (e *StartedEvent) EventSource() any
func (*StartedEvent) Time ¶
func (e *StartedEvent) Time() time.Time
func (*StartedEvent) TimeTaken ¶
func (e *StartedEvent) TimeTaken() time.Duration
type StartingEvent ¶
type StartingEvent struct {
// contains filtered or unexported fields
}
func (*StartingEvent) Application ¶
func (e *StartingEvent) Application() Application
func (*StartingEvent) Args ¶
func (e *StartingEvent) Args() Arguments
func (*StartingEvent) Context ¶
func (e *StartingEvent) Context() Context
func (*StartingEvent) EventSource ¶
func (e *StartingEvent) EventSource() any
func (*StartingEvent) Time ¶
func (e *StartingEvent) Time() time.Time
type StartupListener ¶
type StartupListener interface { OnStarting(ctx Context) OnEnvironmentPrepared(ctx Context, environment env.Environment) OnContextPrepared(ctx Context) OnContextLoaded(ctx Context) OnContextStarted(ctx Context) OnStarted(ctx Context, timeTaken time.Duration) OnReady(ctx Context, timeTaken time.Duration) OnFailed(ctx Context, err error) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.