plugins

package
v0.0.0-...-acac2f6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CMD_PAUSE = "PAUSE"
View Source
const CMD_RESET = "RESET"
View Source
const CMD_STOP = "STOP"
View Source
const DEFAULT_PLUGIN = "plugins_robot"

Variables

View Source
var PluginPause bool
View Source
var PluginStop bool
View Source
var PluginThread string
View Source
var Plugins map[string]Need

Functions

func Each

func Each(str string)

func PluginControl

func PluginControl() bool

func Regist

func Regist(name string, plugin Need)

func RunAfter

func RunAfter(msg string)

func RunBefore

func RunBefore(msg string)

func Say

func Say(msg string)

func SendCmd

func SendCmd(cmd string)

Types

type Need

type Need interface {
	Flag() bool
	Active() bool
	Keyword() []string
	Run(msg string)
	Control(msg string) string
	Say(msg string)
}

Jump to

Keyboard shortcuts

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