Documentation ¶
Index ¶
- type CommandHandler
- type CommandManager
- func (inst *CommandManager) ExecuteCommand(cmd string, args []string) error
- func (inst *CommandManager) GetHandler(cmd string) (CommandHandler, error)
- func (inst *CommandManager) Init() error
- func (inst *CommandManager) Inject(context application.Context) error
- func (inst *CommandManager) SetDefaultHandler(h CommandHandler)
- type CommandRegistration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
type CommandManager ¶
type CommandManager struct {
// contains filtered or unexported fields
}
func (*CommandManager) ExecuteCommand ¶
func (inst *CommandManager) ExecuteCommand(cmd string, args []string) error
func (*CommandManager) GetHandler ¶
func (inst *CommandManager) GetHandler(cmd string) (CommandHandler, error)
func (*CommandManager) Init ¶
func (inst *CommandManager) Init() error
func (*CommandManager) Inject ¶
func (inst *CommandManager) Inject(context application.Context) error
func (*CommandManager) SetDefaultHandler ¶
func (inst *CommandManager) SetDefaultHandler(h CommandHandler)
type CommandRegistration ¶
type CommandRegistration struct { Name string Handler CommandHandler }
Click to show internal directories.
Click to hide internal directories.