Documentation ¶
Index ¶
- Constants
- type ApplicationContext
- func (applicationContext *ApplicationContext) Add(componentName string, component Component)
- func (applicationContext *ApplicationContext) Count() int
- func (applicationContext *ApplicationContext) Delete(componentName string)
- func (applicationContext *ApplicationContext) Get(componentName string) Component
- type Component
Constants ¶
View Source
const (
SensuRepository = "SensuRepository"
)
List of consts containing the names of the available componentes in the Application Context - appcontext.Current
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationContext ¶
type ApplicationContext struct {
// contains filtered or unexported fields
}
ApplicationContext is the type defining a map of Components
var Current ApplicationContext
Current keeps all components available, initialized in the application startup
func CreateApplicationContext ¶
func CreateApplicationContext() ApplicationContext
CreateApplicationContext creates a new ApplicationContext instance
func (*ApplicationContext) Add ¶
func (applicationContext *ApplicationContext) Add(componentName string, component Component)
Add a component By Name
func (*ApplicationContext) Count ¶
func (applicationContext *ApplicationContext) Count() int
Count returns the count of components registered
func (*ApplicationContext) Delete ¶
func (applicationContext *ApplicationContext) Delete(componentName string)
Delete a component By Name
func (*ApplicationContext) Get ¶
func (applicationContext *ApplicationContext) Get(componentName string) Component
Get a component By Name
Click to show internal directories.
Click to hide internal directories.