Versions in this module Expand all Collapse all v0 v0.6.0 Apr 29, 2020 Changes in this version + const Version + var DefaultProfile = Profile + type AppProfile struct + func HTTPAppProfile() *AppProfile + func StrictHTTPAppProfile() *AppProfile + func (ap *AppProfile) AddProfile(p *Profile) error + func (ap *AppProfile) AddProfileDef(name string, injectIn ...string) error + type Closer interface + OnClose func() error + type Config struct + func DefaultConfig() *Config + func NewConfig() *Config + func (c *Config) Build() *Godim + func (c *Config) WithAppProfile(ap *AppProfile) *Config + func (c *Config) WithConfigString(config string) *Config + func (c *Config) WithConfigurationFunction(f func(key string, val reflect.Value) (interface{}, error)) *Config + func (c *Config) WithEventSwitch(bufferSize int) *Config + func (c *Config) WithInjectString(inject string) *Config + type Counter struct + type Emitter interface + Emit func(*Event) + type ErrType uint64 + const ErrTypeAny + const ErrTypeEvent + const ErrTypeGodim + const ErrTypeInjection + const ErrTypeProfile + const ErrTypeRegistry + type Error struct + Err error + Type ErrType + func (err *Error) IsErrType(er ErrType) bool + func (err *Error) SetErrType(er ErrType) *Error + func (err Error) Error() string + type Event struct + Payload map[string]interface{} + Type string + func (event *Event) Abort(current EventInterceptor, reason string) + func (event *Event) AddMetadata(key string, value interface{}) error + func (event *Event) GetID() uint64 + func (event *Event) GetMetadata(key string) interface{} + func (event *Event) GetState() EventState + type EventEmitter struct + func (ee *EventEmitter) Emit(event *Event) + type EventFinalizer interface + Finalize func(*Event) + type EventInterceptor interface + Intercept func(*Event) error + InterceptPriority func() int + type EventReceiver interface + HandleEventTypes func() []string + ReceiveEvent func(*Event) error + type EventState int + const ESAborted + const ESEmitted + const ESError + const ESResolved + type EventSwitch struct + func NewEventSwitch(bufferSize int) *EventSwitch + func (es *EventSwitch) AddEmitter(e Emitter) error + func (es *EventSwitch) AddInterceptor(e EventInterceptor) error + func (es *EventSwitch) AddReceiver(e EventReceiver) error + func (es *EventSwitch) Close() + func (es *EventSwitch) CloseGracefully() + func (es *EventSwitch) Start() + func (es *EventSwitch) Stop() + func (es *EventSwitch) WithEventFinalizer(f EventFinalizer) *EventSwitch + func (es *EventSwitch) WithIDGenerator(idg IDGenerator) *EventSwitch + func (es *EventSwitch) WithSeed(seed uint64) *EventSwitch + type Godim struct + func Default() *Godim + func NewGodim(config *Config) *Godim + func (godim *Godim) CloseApp() error + func (godim *Godim) CloseAppGracefully() error + func (godim *Godim) Declare(label string, o ...interface{}) error + func (godim *Godim) DeclareDefault(o ...interface{}) error + func (godim *Godim) GetStruct(label, key string) interface{} + func (godim *Godim) RunApp() error + type IDGenerator interface + NextID func() uint64 + SetSeed func(uint64) error + type Identifier interface + Key func() string + type Initializer interface + OnInit func() error + type Prioritizer interface + Priority func() int + type Profile struct + type Registry struct + type TagConfig struct