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
- type StartupListeners
- func (l StartupListeners) ContextLoaded(ctx Context)
- func (l StartupListeners) ContextPrepared(ctx Context)
- func (l StartupListeners) ContextStarted(ctx Context)
- func (l StartupListeners) EnvironmentPrepared(ctx Context, environment env.Environment)
- func (l StartupListeners) Failed(ctx Context, err error)
- func (l StartupListeners) Ready(ctx Context, timeTaken time.Duration)
- func (l StartupListeners) Started(ctx Context, timeTaken time.Duration)
- func (l StartupListeners) Starting(ctx Context)
Constants ¶
View Source
const (
NonOptionArgs = "nonOptionArgs"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Arguments ¶
type Arguments struct {
// contains filtered or unexported fields
}
func ParseArguments ¶
func (*Arguments) ContainsOption ¶
func (*Arguments) NonOptionArgs ¶
func (*Arguments) OptionNames ¶
func (*Arguments) OptionValues ¶
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 Context ¶
type Context interface { context.Context event.Publisher event.ListenerRegistry Environment() env.Environment Container() container.Container Close() }
type ContextCustomizer ¶
type ContextLoadedEvent ¶
type ContextLoadedEvent struct {
// contains filtered or unexported fields
}
func ContextLoaded ¶
func ContextLoaded(app Application, args *Arguments, ctx Context) ContextLoadedEvent
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 NewContextPreparedEvent ¶
func NewContextPreparedEvent(app Application, args *Arguments, ctx Context) ContextPreparedEvent
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 ContextStarted ¶
func ContextStarted(app Application, args *Arguments, ctx Context) ContextStartedEvent
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 EnvironmentPrepared ¶
func EnvironmentPrepared(app Application, args *Arguments, ctx Context, environment env.Environment) EnvironmentPreparedEvent
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 Failed ¶
func Failed(app Application, args *Arguments, ctx Context, err error) FailedEvent
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 Ready ¶
func Ready(app Application, args *Arguments, ctx Context, timeTaken time.Duration) ReadyEvent
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 Started ¶
func Started(app Application, args *Arguments, ctx Context, timeTaken time.Duration) StartedEvent
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 Starting ¶
func Starting(app Application, args *Arguments, ctx Context) StartingEvent
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) }
type StartupListeners ¶
type StartupListeners []StartupListener
func (StartupListeners) ContextLoaded ¶
func (l StartupListeners) ContextLoaded(ctx Context)
func (StartupListeners) ContextPrepared ¶
func (l StartupListeners) ContextPrepared(ctx Context)
func (StartupListeners) ContextStarted ¶
func (l StartupListeners) ContextStarted(ctx Context)
func (StartupListeners) EnvironmentPrepared ¶
func (l StartupListeners) EnvironmentPrepared(ctx Context, environment env.Environment)
func (StartupListeners) Failed ¶
func (l StartupListeners) Failed(ctx Context, err error)
func (StartupListeners) Ready ¶
func (l StartupListeners) Ready(ctx Context, timeTaken time.Duration)
func (StartupListeners) Started ¶
func (l StartupListeners) Started(ctx Context, timeTaken time.Duration)
func (StartupListeners) Starting ¶
func (l StartupListeners) Starting(ctx Context)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.