Documentation ¶
Index ¶
- Constants
- type Application
- type Base
- func (cb *Base) Build(_ *Manager) error
- func (cb *Base) Built()
- func (cb *Base) Category() string
- func (cb *Base) Close()
- func (cb *Base) Configure(_ *flag.FlagSet)
- func (cb *Base) Dependencies() []string
- func (cb *Base) Description() string
- func (cb *Base) Initialize(_ *Manager) error
- func (cb *Base) IsBuilt() bool
- type Component
- type Manager
- func (m *Manager) AddComponents(cList ...Component) error
- func (m *Manager) AddPlugin(path, symName string, callback PluginCb) error
- func (m *Manager) AddPlugins(dirname, symName string, callback PluginCb) error
- func (m *Manager) BuildComponent(category string) error
- func (m *Manager) BuildComponents() error
- func (m *Manager) CloseComponents()
- func (m *Manager) Components() []Component
- func (m *Manager) GetComponent(category string, mustExist bool) (Component, error)
- func (m *Manager) InitializeComponents() error
- func (m *Manager) InterfaceError(c Component) error
- func (m *Manager) Run() error
- type PluginCb
- type Runner
Constants ¶
View Source
const (
// CategoryRun AFAIRE.
CategoryRunner = "runner"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component interface { Category() string Description() string Dependencies() []string Configure(fs *flag.FlagSet) Initialize(m *Manager) error IsBuilt() bool Build(m *Manager) error Built() Close() }
Component AFAIRE.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager AFAIRE.
func (*Manager) AddComponents ¶
AddComponents AFAIRE.
func (*Manager) AddPlugins ¶
AddPlugins AFAIRE.
func (*Manager) BuildComponent ¶
BuildComponent AFAIRE.
func (*Manager) GetComponent ¶
GetComponent AFAIRE.
func (*Manager) InitializeComponents ¶
InitializeComponents AFAIRE.
func (*Manager) InterfaceError ¶
InterfaceError AFAIRE.
Click to show internal directories.
Click to hide internal directories.