Documentation ¶
Overview ¶
Package archium is a simple PubSub-Service
Index ¶
Constants ¶
const AppName string = "goBlue/archium"
AppName is the name of the application
const FullVersion string = AppName + VersionMajor + "." + VersionMinor + VersionBuild
FullVersion contains the full name and version of this package in a printable string
const VersionBuild string = "s"
VersionBuild is the type of this release. s(table), b(eta), d(evelopment), n(ightly)
const VersionMajor string = "0"
VersionMajor 0 means in development, >1 ensures compatibility with each minor version, but breakes with new major version
const VersionMinor string = "2"
VersionMinor introduces changes that require a new version number. If the major version is 0, they are likely to break compatibility
Variables ¶
var ArchiumCore _ArchiumCore
ArchiumCore - Singleton
Functions ¶
This section is empty.
Types ¶
type DebugListener ¶
type DebugListener struct { }
DebugListener is a basic listener which listens to everything and logs it to debug
func (*DebugListener) GetTypes ¶
func (adl *DebugListener) GetTypes() []string
GetTypes returns a single wildcard for everything to catch every single Event
func (*DebugListener) Trigger ¶
func (adl *DebugListener) Trigger(ae Event)
Trigger of the DebugListener logs everything on LogLevel debug
type Event ¶
Event is an event that is fired by something. Data is a map<string, anything>, EventType is the type of the Event, often referred to as "topic"
type EventListener ¶
EventListener provides an interface for custom listeners. Trigger is activated if type of an occurred event matches any type returned by GetTypes. GetTypes also can return static strings.