Documentation ¶
Index ¶
- type Command
- type Controller
- type Kernel
- func (k *Kernel) FormatHelp() string
- func (k *Kernel) GetContainer() *gioc.Container
- func (k *Kernel) GetEventsRegistry() *commonEventBus.EventsRegistry
- func (k *Kernel) GetHelp() map[string]string
- func (k *Kernel) RegisterCommand(command *Command)
- func (k *Kernel) RegisterListener(eventObj commonEvent.Event, listenerFunc interface{}, priority int) error
- func (k *Kernel) RegisterService(alias string, factoryMethod interface{}, enableCaching bool) error
- func (k *Kernel) Run(args []string) cliKernelError.CliError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Name string Controller Controller Help string }
func NewCommand ¶
func NewCommand(name string, controller Controller, help string) *Command
func (*Command) FormatHelp ¶
type Controller ¶
type Controller func(args []string) cliKernelError.CliError
type Kernel ¶
type Kernel struct {
// contains filtered or unexported fields
}
func (*Kernel) FormatHelp ¶
func (*Kernel) GetContainer ¶
func (*Kernel) GetEventsRegistry ¶
func (k *Kernel) GetEventsRegistry() *commonEventBus.EventsRegistry
func (*Kernel) RegisterCommand ¶
func (*Kernel) RegisterListener ¶
func (k *Kernel) RegisterListener(eventObj commonEvent.Event, listenerFunc interface{}, priority int) error
func (*Kernel) RegisterService ¶
Click to show internal directories.
Click to hide internal directories.