control

package
v0.0.0-...-c6b16a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommands

func GetCommands() map[string]Command

func RegisterCommand

func RegisterCommand(cmd Command)

Types

type ApiCommand

type ApiCommand struct {
	// contains filtered or unexported fields
}

Connect to CrossFire API service

func (*ApiCommand) Description

func (c *ApiCommand) Description() []string

func (*ApiCommand) Execute

func (c *ApiCommand) Execute() error

func (*ApiCommand) Name

func (c *ApiCommand) Name() string

type Command

type Command interface {
	Name() string
	Description() []string
	Execute() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL