Documentation ¶
Index ¶
- type Commander
- func (c *Commander) Counter(command string, tokens []string, data map[string]string) interface{}
- func (c *Commander) Delay(command string, tokens []string, data map[string]string) (result interface{})
- func (c *Commander) Download(command string, tokens []string, data map[string]string) interface{}
- func (c *Commander) Execute(command string) (result interface{})
- func (c *Commander) Filter(command string, tokens []string, data map[string]string) interface{}
- func (c *Commander) GetDataCmd(command string, tokens []string, data map[string]string) interface{}
- func (c *Commander) Listen()
- func (c *Commander) LoadIntents(intents []byte) error
- func (c *Commander) LoadIntentsFromFile(filename string) *Commander
- func (c *Commander) Loop(command string, tokens []string, data map[string]string) (result interface{})
- func (c *Commander) Pool(command string, tokens []string, data map[string]string) (result interface{})
- func (c *Commander) PrintCommands()
- func (c *Commander) QueryCmd(command string, tokens []string, data map[string]string) interface{}
- func (c *Commander) ReadFromDB(command string, tokens []string, data map[string]string) (result interface{})
- func (c *Commander) Repeat(command string, tokens []string, data map[string]string) (result interface{})
- func (c *Commander) RequestExecutorCmd(command string, tokens []string, data map[string]string) interface{}
- func (c *Commander) RunScript(command string, token []string, data map[string]string) interface{}
- func (c *Commander) RunScriptBase64(command string, token []string, data map[string]string) interface{}
- func (c *Commander) SaveToDB(command string, tokens []string, data map[string]string) (result interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commander ¶
type Commander struct { Intents map[string]interface{} Responses map[string]interface{} Store map[string]interface{} Commands map[string]cmdFunc // contains filtered or unexported fields }
Commander ...
func (*Commander) Delay ¶
func (c *Commander) Delay(command string, tokens []string, data map[string]string) (result interface{})
Delay ...
func (*Commander) GetDataCmd ¶
GetDataCmd ...
func (*Commander) LoadIntents ¶
LoadIntents ...
func (*Commander) LoadIntentsFromFile ¶
LoadIntentsFromFile ...
func (*Commander) Loop ¶
func (c *Commander) Loop(command string, tokens []string, data map[string]string) (result interface{})
Loop ...
func (*Commander) Pool ¶
func (c *Commander) Pool(command string, tokens []string, data map[string]string) (result interface{})
Pool ...
func (*Commander) ReadFromDB ¶
func (c *Commander) ReadFromDB(command string, tokens []string, data map[string]string) (result interface{})
ReadFromDB ...
func (*Commander) Repeat ¶
func (c *Commander) Repeat(command string, tokens []string, data map[string]string) (result interface{})
Repeat ...
func (*Commander) RequestExecutorCmd ¶
func (c *Commander) RequestExecutorCmd(command string, tokens []string, data map[string]string) interface{}
RequestExecutorCmd ...
Click to show internal directories.
Click to hide internal directories.