Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCliOperation ¶
func RegisterCliOperation(c *caddy.Controller, cmds ...ControlCommand)
RegisterCliOperation is called by plugins to register new commands to be provided to the cli/api
Types ¶
type CommandRegistry ¶
type CommandRegistry struct {
// contains filtered or unexported fields
}
CommandRegistry holds a list of all the commands that are registered.
func NewCommandRegistry ¶
func NewCommandRegistry() (CommandRegistry, error)
NewCommandRegistry returns a new commandregistry for storing actions to perform
type ControlCommand ¶
type ControlCommand struct { }
type CoreControl ¶
CoreControl is our main struct to control the world of remote control
func New ¶
func New() (CoreControl, error)
New provides a new CoreControl object, and starts the server
func (*CoreControl) Close ¶
func (cc *CoreControl) Close()
Close the server down, should be handled when caddy turns off
func (*CoreControl) RegisterCommand ¶
func (cc *CoreControl) RegisterCommand(cmd ControlCommand)
Click to show internal directories.
Click to hide internal directories.