Documentation ¶
Index ¶
- type ApplicationContext
- type ApplicationContextClosedEvent
- func (event ApplicationContextClosedEvent) GetApplicationContext() ApplicationContext
- func (event ApplicationContextClosedEvent) GetEventId() ApplicationEventId
- func (event ApplicationContextClosedEvent) GetParentEventId() ApplicationEventId
- func (event ApplicationContextClosedEvent) GetSource() interface{}
- func (event ApplicationContextClosedEvent) GetTimestamp() int64
- type ApplicationContextEvent
- type ApplicationContextInitializer
- type ApplicationContextRefreshedEvent
- func (event ApplicationContextRefreshedEvent) GetApplicationContext() ApplicationContext
- func (event ApplicationContextRefreshedEvent) GetEventId() ApplicationEventId
- func (event ApplicationContextRefreshedEvent) GetParentEventId() ApplicationEventId
- func (event ApplicationContextRefreshedEvent) GetSource() interface{}
- func (event ApplicationContextRefreshedEvent) GetTimestamp() int64
- type ApplicationContextStartedEvent
- func (event ApplicationContextStartedEvent) GetApplicationContext() ApplicationContext
- func (event ApplicationContextStartedEvent) GetEventId() ApplicationEventId
- func (event ApplicationContextStartedEvent) GetParentEventId() ApplicationEventId
- func (event ApplicationContextStartedEvent) GetSource() interface{}
- func (event ApplicationContextStartedEvent) GetTimestamp() int64
- type ApplicationContextStoppedEvent
- func (event ApplicationContextStoppedEvent) GetApplicationContext() ApplicationContext
- func (event ApplicationContextStoppedEvent) GetEventId() ApplicationEventId
- func (event ApplicationContextStoppedEvent) GetParentEventId() ApplicationEventId
- func (event ApplicationContextStoppedEvent) GetSource() interface{}
- func (event ApplicationContextStoppedEvent) GetTimestamp() int64
- type ApplicationEvent
- type ApplicationEventBroadcaster
- type ApplicationEventId
- func ApplicationContextClosedEventId() ApplicationEventId
- func ApplicationContextEventId() ApplicationEventId
- func ApplicationContextRefreshedEventId() ApplicationEventId
- func ApplicationContextStartedEventId() ApplicationEventId
- func ApplicationContextStoppedEventId() ApplicationEventId
- func GetEventId(eventName string) ApplicationEventId
- type ApplicationEventPublisher
- type ApplicationId
- type ApplicationListener
- type BaseApplicationContext
- func (ctx *BaseApplicationContext) AddApplicationListener(listener ApplicationListener)
- func (ctx *BaseApplicationContext) Configure()
- func (ctx *BaseApplicationContext) Get(key string) interface{}
- func (ctx *BaseApplicationContext) GetAppId() ApplicationId
- func (ctx *BaseApplicationContext) GetApplicationListeners() []ApplicationListener
- func (ctx *BaseApplicationContext) GetApplicationName() string
- func (ctx *BaseApplicationContext) GetContextId() ContextId
- func (ctx *BaseApplicationContext) GetEnvironment() core.ConfigurableEnvironment
- func (ctx *BaseApplicationContext) GetLogger() Logger
- func (ctx *BaseApplicationContext) GetPeaFactory() peas.ConfigurablePeaFactory
- func (ctx *BaseApplicationContext) GetStartupTimestamp() int64
- func (ctx *BaseApplicationContext) PublishEvent(event ApplicationEvent)
- func (ctx *BaseApplicationContext) Put(key string, value interface{})
- func (ctx *BaseApplicationContext) SetApplicationName(name string)
- func (ctx *BaseApplicationContext) SetEnvironment(environment core.ConfigurableEnvironment)
- func (ctx *BaseApplicationContext) SetLogger(logger Logger)
- type BootstrapProcessor
- type ComponentPeaDefinitionScanner
- type ConfigurableApplicationContext
- type ConfigurableContext
- type ConfigurableContextAdapter
- type ConfigurationProperties
- type ConfigurationPropertiesBinder
- type ConfigurationPropertiesBindingProcessor
- type Context
- type ContextId
- type EventListenerProcessor
- type LogFormatter
- type LogLevel
- type Logger
- type LoggingConfiguration
- type ScannedPeaDefinition
- type ScannedPeaNameGenerator
- type SimpleApplicationEventBroadcaster
- func (broadcaster *SimpleApplicationEventBroadcaster) BroadcastEvent(context ApplicationContext, event ApplicationEvent)
- func (broadcaster *SimpleApplicationEventBroadcaster) RegisterApplicationListener(listener ApplicationListener)
- func (broadcaster *SimpleApplicationEventBroadcaster) RemoveAllApplicationListeners()
- func (broadcaster *SimpleApplicationEventBroadcaster) UnregisterApplicationListener(listener ApplicationListener)
- type SimpleLogger
- func (l *SimpleLogger) ApplyLoggingProperties(properties configure.LoggingProperties)
- func (l *SimpleLogger) Debug(ctx interface{}, message interface{})
- func (l *SimpleLogger) Debugf(ctx interface{}, format string, args ...interface{})
- func (l *SimpleLogger) Error(ctx interface{}, message interface{})
- func (l *SimpleLogger) Errorf(ctx interface{}, format string, args ...interface{})
- func (l *SimpleLogger) Fatal(ctx interface{}, message interface{})
- func (l *SimpleLogger) Fatalf(ctx interface{}, format string, args ...interface{})
- func (l *SimpleLogger) Info(ctx interface{}, message interface{})
- func (l *SimpleLogger) Infof(ctx interface{}, format string, args ...interface{})
- func (l *SimpleLogger) Panic(ctx interface{}, message interface{})
- func (l *SimpleLogger) Panicf(ctx interface{}, format string, args ...interface{})
- func (l *SimpleLogger) Print(ctx interface{}, message interface{})
- func (l *SimpleLogger) Printf(ctx interface{}, format string, args ...interface{})
- func (l *SimpleLogger) Trace(ctx interface{}, message interface{})
- func (l *SimpleLogger) Tracef(ctx interface{}, format string, args ...interface{})
- func (l SimpleLogger) Warning(ctx interface{}, message interface{})
- func (l SimpleLogger) Warningf(ctx interface{}, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationContext ¶
type ApplicationContext interface { Context peas.ConfigurablePeaFactory GetAppId() ApplicationId GetApplicationName() string GetStartupTimestamp() int64 }
type ApplicationContextClosedEvent ¶
type ApplicationContextClosedEvent struct {
// contains filtered or unexported fields
}
func NewApplicationContextClosedEvent ¶
func NewApplicationContextClosedEvent(source ApplicationContext) ApplicationContextClosedEvent
func (ApplicationContextClosedEvent) GetApplicationContext ¶
func (event ApplicationContextClosedEvent) GetApplicationContext() ApplicationContext
func (ApplicationContextClosedEvent) GetEventId ¶
func (event ApplicationContextClosedEvent) GetEventId() ApplicationEventId
func (ApplicationContextClosedEvent) GetParentEventId ¶
func (event ApplicationContextClosedEvent) GetParentEventId() ApplicationEventId
func (ApplicationContextClosedEvent) GetSource ¶
func (event ApplicationContextClosedEvent) GetSource() interface{}
func (ApplicationContextClosedEvent) GetTimestamp ¶
func (event ApplicationContextClosedEvent) GetTimestamp() int64
type ApplicationContextEvent ¶
type ApplicationContextEvent interface { ApplicationEvent GetApplicationContext() ApplicationContext }
type ApplicationContextInitializer ¶
type ApplicationContextInitializer interface {
InitializeContext(context ConfigurableApplicationContext)
}
type ApplicationContextRefreshedEvent ¶
type ApplicationContextRefreshedEvent struct {
// contains filtered or unexported fields
}
func NewApplicationContextRefreshedEvent ¶
func NewApplicationContextRefreshedEvent(source ApplicationContext) ApplicationContextRefreshedEvent
func (ApplicationContextRefreshedEvent) GetApplicationContext ¶
func (event ApplicationContextRefreshedEvent) GetApplicationContext() ApplicationContext
func (ApplicationContextRefreshedEvent) GetEventId ¶
func (event ApplicationContextRefreshedEvent) GetEventId() ApplicationEventId
func (ApplicationContextRefreshedEvent) GetParentEventId ¶
func (event ApplicationContextRefreshedEvent) GetParentEventId() ApplicationEventId
func (ApplicationContextRefreshedEvent) GetSource ¶
func (event ApplicationContextRefreshedEvent) GetSource() interface{}
func (ApplicationContextRefreshedEvent) GetTimestamp ¶
func (event ApplicationContextRefreshedEvent) GetTimestamp() int64
type ApplicationContextStartedEvent ¶
type ApplicationContextStartedEvent struct {
// contains filtered or unexported fields
}
func NewApplicationContextStartedEvent ¶
func NewApplicationContextStartedEvent(source ApplicationContext) ApplicationContextStartedEvent
func (ApplicationContextStartedEvent) GetApplicationContext ¶
func (event ApplicationContextStartedEvent) GetApplicationContext() ApplicationContext
func (ApplicationContextStartedEvent) GetEventId ¶
func (event ApplicationContextStartedEvent) GetEventId() ApplicationEventId
func (ApplicationContextStartedEvent) GetParentEventId ¶
func (event ApplicationContextStartedEvent) GetParentEventId() ApplicationEventId
func (ApplicationContextStartedEvent) GetSource ¶
func (event ApplicationContextStartedEvent) GetSource() interface{}
func (ApplicationContextStartedEvent) GetTimestamp ¶
func (event ApplicationContextStartedEvent) GetTimestamp() int64
type ApplicationContextStoppedEvent ¶
type ApplicationContextStoppedEvent struct {
// contains filtered or unexported fields
}
func NewApplicationContextStoppedEvent ¶
func NewApplicationContextStoppedEvent(source ApplicationContext) ApplicationContextStoppedEvent
func (ApplicationContextStoppedEvent) GetApplicationContext ¶
func (event ApplicationContextStoppedEvent) GetApplicationContext() ApplicationContext
func (ApplicationContextStoppedEvent) GetEventId ¶
func (event ApplicationContextStoppedEvent) GetEventId() ApplicationEventId
func (ApplicationContextStoppedEvent) GetParentEventId ¶
func (event ApplicationContextStoppedEvent) GetParentEventId() ApplicationEventId
func (ApplicationContextStoppedEvent) GetSource ¶
func (event ApplicationContextStoppedEvent) GetSource() interface{}
func (ApplicationContextStoppedEvent) GetTimestamp ¶
func (event ApplicationContextStoppedEvent) GetTimestamp() int64
type ApplicationEvent ¶
type ApplicationEvent interface { GetEventId() ApplicationEventId GetParentEventId() ApplicationEventId GetSource() interface{} GetTimestamp() int64 }
type ApplicationEventBroadcaster ¶
type ApplicationEventBroadcaster interface { RegisterApplicationListener(listener ApplicationListener) UnregisterApplicationListener(listener ApplicationListener) RemoveAllApplicationListeners() BroadcastEvent(context ApplicationContext, event ApplicationEvent) }
type ApplicationEventId ¶
type ApplicationEventId uint64
func ApplicationContextClosedEventId ¶
func ApplicationContextClosedEventId() ApplicationEventId
func ApplicationContextEventId ¶
func ApplicationContextEventId() ApplicationEventId
func ApplicationContextRefreshedEventId ¶
func ApplicationContextRefreshedEventId() ApplicationEventId
func ApplicationContextStartedEventId ¶
func ApplicationContextStartedEventId() ApplicationEventId
func ApplicationContextStoppedEventId ¶
func ApplicationContextStoppedEventId() ApplicationEventId
func GetEventId ¶
func GetEventId(eventName string) ApplicationEventId
type ApplicationEventPublisher ¶
type ApplicationEventPublisher interface {
PublishEvent(context Context, event ApplicationEvent)
}
type ApplicationId ¶
type ApplicationId string
type ApplicationListener ¶
type ApplicationListener interface { GetApplicationListenerName() string SubscribeEvents() []ApplicationEventId OnApplicationEvent(context Context, event ApplicationEvent) }
type BaseApplicationContext ¶
type BaseApplicationContext struct { ConfigurableContextAdapter peas.ConfigurablePeaFactory // contains filtered or unexported fields }
func NewBaseApplicationContext ¶
func NewBaseApplicationContext(appId ApplicationId, contextId ContextId, configurableContextAdapter ConfigurableContextAdapter) *BaseApplicationContext
func (*BaseApplicationContext) AddApplicationListener ¶
func (ctx *BaseApplicationContext) AddApplicationListener(listener ApplicationListener)
func (*BaseApplicationContext) Configure ¶
func (ctx *BaseApplicationContext) Configure()
func (*BaseApplicationContext) Get ¶
func (ctx *BaseApplicationContext) Get(key string) interface{}
func (*BaseApplicationContext) GetAppId ¶
func (ctx *BaseApplicationContext) GetAppId() ApplicationId
func (*BaseApplicationContext) GetApplicationListeners ¶
func (ctx *BaseApplicationContext) GetApplicationListeners() []ApplicationListener
func (*BaseApplicationContext) GetApplicationName ¶
func (ctx *BaseApplicationContext) GetApplicationName() string
func (*BaseApplicationContext) GetContextId ¶
func (ctx *BaseApplicationContext) GetContextId() ContextId
func (*BaseApplicationContext) GetEnvironment ¶
func (ctx *BaseApplicationContext) GetEnvironment() core.ConfigurableEnvironment
func (*BaseApplicationContext) GetLogger ¶
func (ctx *BaseApplicationContext) GetLogger() Logger
func (*BaseApplicationContext) GetPeaFactory ¶
func (ctx *BaseApplicationContext) GetPeaFactory() peas.ConfigurablePeaFactory
func (*BaseApplicationContext) GetStartupTimestamp ¶
func (ctx *BaseApplicationContext) GetStartupTimestamp() int64
func (*BaseApplicationContext) PublishEvent ¶
func (ctx *BaseApplicationContext) PublishEvent(event ApplicationEvent)
func (*BaseApplicationContext) Put ¶
func (ctx *BaseApplicationContext) Put(key string, value interface{})
func (*BaseApplicationContext) SetApplicationName ¶
func (ctx *BaseApplicationContext) SetApplicationName(name string)
func (*BaseApplicationContext) SetEnvironment ¶
func (ctx *BaseApplicationContext) SetEnvironment(environment core.ConfigurableEnvironment)
func (*BaseApplicationContext) SetLogger ¶
func (ctx *BaseApplicationContext) SetLogger(logger Logger)
type BootstrapProcessor ¶
type BootstrapProcessor struct { }
func NewBootstrapProcessor ¶
func NewBootstrapProcessor() BootstrapProcessor
func (BootstrapProcessor) AfterPeaDefinitionRegistryInitialization ¶
func (processor BootstrapProcessor) AfterPeaDefinitionRegistryInitialization(registry peas.PeaDefinitionRegistry)
func (BootstrapProcessor) AfterPeaFactoryInitialization ¶
func (processor BootstrapProcessor) AfterPeaFactoryInitialization(factory peas.ConfigurablePeaFactory)
type ComponentPeaDefinitionScanner ¶
type ComponentPeaDefinitionScanner struct {
// contains filtered or unexported fields
}
func NewComponentPeaDefinitionScanner ¶
func NewComponentPeaDefinitionScanner(registry peas.PeaDefinitionRegistry) ComponentPeaDefinitionScanner
func (ComponentPeaDefinitionScanner) DoScan ¶
func (scanner ComponentPeaDefinitionScanner) DoScan()
type ConfigurableApplicationContext ¶
type ConfigurableApplicationContext interface { ApplicationContext ConfigurableContext }
type ConfigurableContext ¶
type ConfigurableContext interface { SetLogger(logger Logger) GetLogger() Logger SetEnvironment(environment core.ConfigurableEnvironment) GetEnvironment() core.ConfigurableEnvironment GetPeaFactory() peas.ConfigurablePeaFactory AddApplicationListener(listener ApplicationListener) }
type ConfigurableContextAdapter ¶
type ConfigurableContextAdapter interface { Configure() OnConfigure() FinishConfigure() }
type ConfigurationProperties ¶
type ConfigurationProperties interface {
GetConfigurationPrefix() string
}
type ConfigurationPropertiesBinder ¶
type ConfigurationPropertiesBinder struct {
// contains filtered or unexported fields
}
func (ConfigurationPropertiesBinder) Bind ¶
func (binder ConfigurationPropertiesBinder) Bind(target interface{}) error
type ConfigurationPropertiesBindingProcessor ¶
type ConfigurationPropertiesBindingProcessor struct {
// contains filtered or unexported fields
}
func NewConfigurationPropertiesBindingProcessor ¶
func NewConfigurationPropertiesBindingProcessor(env core.Environment, typeConverterService core.TypeConverterService) ConfigurationPropertiesBindingProcessor
func (ConfigurationPropertiesBindingProcessor) AfterPeaInitialization ¶
func (processor ConfigurationPropertiesBindingProcessor) AfterPeaInitialization(peaName string, pea interface{}) (interface{}, error)
func (ConfigurationPropertiesBindingProcessor) BeforePeaInitialization ¶
func (processor ConfigurationPropertiesBindingProcessor) BeforePeaInitialization(peaName string, pea interface{}) (interface{}, error)
type EventListenerProcessor ¶
type EventListenerProcessor struct { }
func NewEventListenerProcessor ¶
func NewEventListenerProcessor() EventListenerProcessor
func (EventListenerProcessor) AfterPeaDefinitionRegistryInitialization ¶
func (processor EventListenerProcessor) AfterPeaDefinitionRegistryInitialization(registry peas.PeaDefinitionRegistry)
func (EventListenerProcessor) AfterPeaFactoryInitialization ¶
func (processor EventListenerProcessor) AfterPeaFactoryInitialization(factory peas.ConfigurablePeaFactory)
type LogFormatter ¶
type LogFormatter struct { logrus.TextFormatter // contains filtered or unexported fields }
func NewLogFormatter ¶
func NewLogFormatter() *LogFormatter
func (*LogFormatter) GetLevelString ¶
func (f *LogFormatter) GetLevelString(entry *logrus.Entry) string
func (*LogFormatter) GetSumContextId ¶
func (f *LogFormatter) GetSumContextId(contextId ContextId) string
type Logger ¶
type Logger interface { Trace(ctx interface{}, message interface{}) Debug(ctx interface{}, message interface{}) Info(ctx interface{}, message interface{}) Warning(ctx interface{}, message interface{}) Error(ctx interface{}, message interface{}) Fatal(ctx interface{}, message interface{}) Panic(ctx interface{}, message interface{}) Print(ctx interface{}, message interface{}) Tracef(ctx interface{}, format string, args ...interface{}) Debugf(ctx interface{}, format string, args ...interface{}) Infof(ctx interface{}, format string, args ...interface{}) Warningf(ctx interface{}, format string, args ...interface{}) Errorf(ctx interface{}, format string, args ...interface{}) Fatalf(ctx interface{}, format string, args ...interface{}) Panicf(ctx interface{}, format string, args ...interface{}) Printf(ctx interface{}, format string, args ...interface{}) }
type LoggingConfiguration ¶
type LoggingConfiguration interface {
ApplyLoggingProperties(properties configure.LoggingProperties)
}
type ScannedPeaDefinition ¶
type ScannedPeaDefinition struct { *peas.SimplePeaDefinition // contains filtered or unexported fields }
func NewScannedPeaDefinition ¶
func NewScannedPeaDefinition(componentName string, peaType goo.Type) ScannedPeaDefinition
func (ScannedPeaDefinition) GetComponentName ¶
func (definition ScannedPeaDefinition) GetComponentName() string
type ScannedPeaNameGenerator ¶
type ScannedPeaNameGenerator struct { }
func NewScannedPeaNameGenerator ¶
func NewScannedPeaNameGenerator() ScannedPeaNameGenerator
func (ScannedPeaNameGenerator) GenerateName ¶
func (generator ScannedPeaNameGenerator) GenerateName(peaDefinition peas.PeaDefinition) string
type SimpleApplicationEventBroadcaster ¶
type SimpleApplicationEventBroadcaster struct {
// contains filtered or unexported fields
}
func NewSimpleApplicationEventBroadcaster ¶
func NewSimpleApplicationEventBroadcaster() *SimpleApplicationEventBroadcaster
func (*SimpleApplicationEventBroadcaster) BroadcastEvent ¶
func (broadcaster *SimpleApplicationEventBroadcaster) BroadcastEvent(context ApplicationContext, event ApplicationEvent)
func (*SimpleApplicationEventBroadcaster) RegisterApplicationListener ¶
func (broadcaster *SimpleApplicationEventBroadcaster) RegisterApplicationListener(listener ApplicationListener)
func (*SimpleApplicationEventBroadcaster) RemoveAllApplicationListeners ¶
func (broadcaster *SimpleApplicationEventBroadcaster) RemoveAllApplicationListeners()
func (*SimpleApplicationEventBroadcaster) UnregisterApplicationListener ¶
func (broadcaster *SimpleApplicationEventBroadcaster) UnregisterApplicationListener(listener ApplicationListener)
type SimpleLogger ¶
type SimpleLogger struct {
// contains filtered or unexported fields
}
func NewSimpleLogger ¶
func NewSimpleLogger() *SimpleLogger
func (*SimpleLogger) ApplyLoggingProperties ¶
func (l *SimpleLogger) ApplyLoggingProperties(properties configure.LoggingProperties)
func (*SimpleLogger) Debug ¶
func (l *SimpleLogger) Debug(ctx interface{}, message interface{})
func (*SimpleLogger) Debugf ¶
func (l *SimpleLogger) Debugf(ctx interface{}, format string, args ...interface{})
func (*SimpleLogger) Error ¶
func (l *SimpleLogger) Error(ctx interface{}, message interface{})
func (*SimpleLogger) Errorf ¶
func (l *SimpleLogger) Errorf(ctx interface{}, format string, args ...interface{})
func (*SimpleLogger) Fatal ¶
func (l *SimpleLogger) Fatal(ctx interface{}, message interface{})
func (*SimpleLogger) Fatalf ¶
func (l *SimpleLogger) Fatalf(ctx interface{}, format string, args ...interface{})
func (*SimpleLogger) Info ¶
func (l *SimpleLogger) Info(ctx interface{}, message interface{})
func (*SimpleLogger) Infof ¶
func (l *SimpleLogger) Infof(ctx interface{}, format string, args ...interface{})
func (*SimpleLogger) Panic ¶
func (l *SimpleLogger) Panic(ctx interface{}, message interface{})
func (*SimpleLogger) Panicf ¶
func (l *SimpleLogger) Panicf(ctx interface{}, format string, args ...interface{})
func (*SimpleLogger) Print ¶
func (l *SimpleLogger) Print(ctx interface{}, message interface{})
func (*SimpleLogger) Printf ¶
func (l *SimpleLogger) Printf(ctx interface{}, format string, args ...interface{})
func (*SimpleLogger) Trace ¶
func (l *SimpleLogger) Trace(ctx interface{}, message interface{})
func (*SimpleLogger) Tracef ¶
func (l *SimpleLogger) Tracef(ctx interface{}, format string, args ...interface{})
func (SimpleLogger) Warning ¶
func (l SimpleLogger) Warning(ctx interface{}, message interface{})
func (SimpleLogger) Warningf ¶
func (l SimpleLogger) Warningf(ctx interface{}, format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.