Documentation ¶
Overview ¶
Package plugin enables plugins to register with Abot and connect to the database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingPluginName is returned when a plugin name is expected, but // but a blank name is provided. ErrMissingPluginName = errors.New("missing plugin name") // ErrMissingTrigger is returned when a trigger is expected but none // were found. ErrMissingTrigger = errors.New("missing plugin trigger") )
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct { Config Config Vocab *dt.Vocab Trigger *nlp.StructuredInput }
Plugin holds config options for any Abot plugin. Name must be globally unique. Port takes the format of ":1234". Note that the colon is significant. ServerAddress will default to localhost if left blank.
Click to show internal directories.
Click to hide internal directories.