Documentation ¶
Index ¶
- Constants
- type Arguments
- type ArgumentsSource
- func (s *ArgumentsSource) ContainsProperty(name string) bool
- func (s *ArgumentsSource) Name() string
- func (s *ArgumentsSource) NonOptionArgs() []string
- func (s *ArgumentsSource) OptionValues(name string) []string
- func (s *ArgumentsSource) Property(name string) (any, bool)
- func (s *ArgumentsSource) PropertyNames() []string
- func (s *ArgumentsSource) PropertyOrDefault(name string, defaultValue any) any
- func (s *ArgumentsSource) Source() any
- type Banner
- type CommandLineRunner
- type Context
- type ContextConfigurer
- type DefaultEnvironment
- func (e *DefaultEnvironment) ActiveProfiles() []string
- func (e *DefaultEnvironment) AddActiveProfile(profiles ...string) error
- func (e *DefaultEnvironment) DefaultProfiles() []string
- func (e *DefaultEnvironment) IsProfileActive(profile string) bool
- func (e *DefaultEnvironment) Merge(parent Environment)
- func (e *DefaultEnvironment) PropertyResolver() property.Resolver
- func (e *DefaultEnvironment) PropertySources() *property.Sources
- func (e *DefaultEnvironment) SetActiveProfiles(profiles ...string) error
- func (e *DefaultEnvironment) SetDefaultProfiles(profiles ...string) error
- type Environment
- type EnvironmentSource
- func (s *EnvironmentSource) ContainsProperty(name string) bool
- func (s *EnvironmentSource) Name() string
- func (s *EnvironmentSource) Property(name string) (any, bool)
- func (s *EnvironmentSource) PropertyNames() []string
- func (s *EnvironmentSource) PropertyOrDefault(name string, defaultValue any) any
- func (s *EnvironmentSource) Source() any
- type Lifecycle
- type LifecycleProperties
- type Server
- type ServerProperties
- type ShutdownEvent
- type StartupEvent
Constants ¶
View Source
const (
NonOptionArgs = "nonOptionArgs"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ArgumentsSource ¶
type ArgumentsSource struct {
// contains filtered or unexported fields
}
func NewArgumentsSource ¶
func NewArgumentsSource(args *Arguments) *ArgumentsSource
func (*ArgumentsSource) ContainsProperty ¶
func (s *ArgumentsSource) ContainsProperty(name string) bool
func (*ArgumentsSource) Name ¶
func (s *ArgumentsSource) Name() string
func (*ArgumentsSource) NonOptionArgs ¶
func (s *ArgumentsSource) NonOptionArgs() []string
func (*ArgumentsSource) OptionValues ¶
func (s *ArgumentsSource) OptionValues(name string) []string
func (*ArgumentsSource) PropertyNames ¶
func (s *ArgumentsSource) PropertyNames() []string
func (*ArgumentsSource) PropertyOrDefault ¶
func (s *ArgumentsSource) PropertyOrDefault(name string, defaultValue any) any
func (*ArgumentsSource) Source ¶
func (s *ArgumentsSource) Source() any
type CommandLineRunner ¶ added in v0.0.14
type ContextConfigurer ¶
type DefaultEnvironment ¶
type DefaultEnvironment struct {
// contains filtered or unexported fields
}
func NewDefaultEnvironment ¶
func NewDefaultEnvironment() *DefaultEnvironment
func (*DefaultEnvironment) ActiveProfiles ¶
func (e *DefaultEnvironment) ActiveProfiles() []string
func (*DefaultEnvironment) AddActiveProfile ¶
func (e *DefaultEnvironment) AddActiveProfile(profiles ...string) error
func (*DefaultEnvironment) DefaultProfiles ¶
func (e *DefaultEnvironment) DefaultProfiles() []string
func (*DefaultEnvironment) IsProfileActive ¶
func (e *DefaultEnvironment) IsProfileActive(profile string) bool
func (*DefaultEnvironment) Merge ¶
func (e *DefaultEnvironment) Merge(parent Environment)
func (*DefaultEnvironment) PropertyResolver ¶
func (e *DefaultEnvironment) PropertyResolver() property.Resolver
func (*DefaultEnvironment) PropertySources ¶
func (e *DefaultEnvironment) PropertySources() *property.Sources
func (*DefaultEnvironment) SetActiveProfiles ¶
func (e *DefaultEnvironment) SetActiveProfiles(profiles ...string) error
func (*DefaultEnvironment) SetDefaultProfiles ¶
func (e *DefaultEnvironment) SetDefaultProfiles(profiles ...string) error
type Environment ¶
type Environment interface { ActiveProfiles() []string DefaultProfiles() []string IsProfileActive(profile string) bool SetActiveProfiles(profiles ...string) error AddActiveProfile(profile ...string) error SetDefaultProfiles(profiles ...string) error Merge(parent Environment) PropertySources() *property.Sources PropertyResolver() property.Resolver }
type EnvironmentSource ¶
type EnvironmentSource struct {
// contains filtered or unexported fields
}
func NewEnvironmentSource ¶
func NewEnvironmentSource() *EnvironmentSource
func (*EnvironmentSource) ContainsProperty ¶
func (s *EnvironmentSource) ContainsProperty(name string) bool
func (*EnvironmentSource) Name ¶
func (s *EnvironmentSource) Name() string
func (*EnvironmentSource) PropertyNames ¶
func (s *EnvironmentSource) PropertyNames() []string
func (*EnvironmentSource) PropertyOrDefault ¶
func (s *EnvironmentSource) PropertyOrDefault(name string, defaultValue any) any
func (*EnvironmentSource) Source ¶
func (s *EnvironmentSource) Source() any
type LifecycleProperties ¶ added in v0.0.17
type LifecycleProperties struct { property.Properties `prefix:"procyon.lifecycle"` ShutdownTimeout time.Duration `prop:"shutdown-timeout" default:"30000"` }
func NewLifecycleProperties ¶ added in v0.0.17
func NewLifecycleProperties() *LifecycleProperties
type ServerProperties ¶ added in v0.0.17
type ServerProperties struct { property.Properties `prefix:"procyon.server"` Port int `prop:"port"` }
func NewServerProperties ¶ added in v0.0.17
func NewServerProperties() *ServerProperties
type ShutdownEvent ¶ added in v0.0.17
type ShutdownEvent struct {
// contains filtered or unexported fields
}
func NewShutdownEvent ¶ added in v0.0.17
func NewShutdownEvent(ctx Context) ShutdownEvent
func (ShutdownEvent) Context ¶ added in v0.0.17
func (s ShutdownEvent) Context() Context
func (ShutdownEvent) EventSource ¶ added in v0.0.17
func (s ShutdownEvent) EventSource() any
func (ShutdownEvent) EventTime ¶ added in v0.0.17
func (s ShutdownEvent) EventTime() time.Time
type StartupEvent ¶ added in v0.0.17
type StartupEvent struct {
// contains filtered or unexported fields
}
func NewStartupEvent ¶ added in v0.0.17
func NewStartupEvent(ctx Context) StartupEvent
func (StartupEvent) Context ¶ added in v0.0.17
func (s StartupEvent) Context() Context
func (StartupEvent) EventSource ¶ added in v0.0.17
func (s StartupEvent) EventSource() any
func (StartupEvent) EventTime ¶ added in v0.0.17
func (s StartupEvent) EventTime() time.Time
Source Files ¶
Click to show internal directories.
Click to hide internal directories.