Documentation
¶
Index ¶
- type Constructor
- type Controller
- func (c *Controller) GetModulesErrChan() chan error
- func (c *Controller) GetRepo() *Repo
- func (c *Controller) HandleWrapErrors(w *Wrap)
- func (c *Controller) RegisterManifest(man *Manifest) error
- func (c *Controller) RegisterModule(wconf WrapConfigurer) error
- func (c *Controller) StartModules()
- func (c *Controller) StopModules() *sync.WaitGroup
- type Factory
- type FactoryRepo
- type Manifest
- type Module
- type Repo
- type Wrap
- func (w *Wrap) GetController() *Controller
- func (w *Wrap) GetErrChan() chan error
- func (w *Wrap) GetId() string
- func (w *Wrap) GetIsRunningChan() chan interface{}
- func (w *Wrap) GetModule() Module
- func (w *Wrap) MapModuleConfigurer(conf interface{}) error
- func (w *Wrap) Running() bool
- func (w *Wrap) Start()
- func (w *Wrap) Stop()
- type WrapConfig
- type WrapConfigurer
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constructor ¶
type Controller ¶
type Controller struct { FactoryRepo *FactoryRepo Repo *Repo ErrChan chan error }
func NewController ¶
func NewController() (*Controller, error)
func (*Controller) GetModulesErrChan ¶
func (c *Controller) GetModulesErrChan() chan error
func (*Controller) GetRepo ¶
func (c *Controller) GetRepo() *Repo
func (*Controller) HandleWrapErrors ¶
func (c *Controller) HandleWrapErrors(w *Wrap)
func (*Controller) RegisterManifest ¶
func (c *Controller) RegisterManifest(man *Manifest) error
func (*Controller) RegisterModule ¶
func (c *Controller) RegisterModule(wconf WrapConfigurer) error
func (*Controller) StartModules ¶
func (c *Controller) StartModules()
func (*Controller) StopModules ¶
func (c *Controller) StopModules() *sync.WaitGroup
type FactoryRepo ¶
type FactoryRepo struct {
// contains filtered or unexported fields
}
func NewFactoryRepo ¶
func NewFactoryRepo() (fr *FactoryRepo, err error)
NewFactoryRepo will create a new FactoryRepo
func (*FactoryRepo) GetManifest ¶
func (fr *FactoryRepo) GetManifest(mtype string) (*Manifest, error)
func (*FactoryRepo) Register ¶
func (fr *FactoryRepo) Register(m *Manifest) error
type Manifest ¶
type Manifest struct { Name string NewModule Constructor }
func NewManifest ¶
func NewManifest(name string, cons Constructor) *Manifest
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) ResolveWrap ¶
type Wrap ¶
type Wrap struct { *Controller // contains filtered or unexported fields }
func (*Wrap) GetController ¶
func (w *Wrap) GetController() *Controller
func (*Wrap) GetErrChan ¶
func (*Wrap) GetIsRunningChan ¶
func (w *Wrap) GetIsRunningChan() chan interface{}
func (*Wrap) MapModuleConfigurer ¶
type WrapConfig ¶
func (WrapConfig) GetConfig ¶
func (wc WrapConfig) GetConfig() map[string]interface{}
func (WrapConfig) GetId ¶
func (wc WrapConfig) GetId() string
func (WrapConfig) GetType ¶
func (wc WrapConfig) GetType() string
type WrapConfigurer ¶
Click to show internal directories.
Click to hide internal directories.