Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginList *list.List = list.New()
Functions ¶
Types ¶
type GoneHandler ¶
type GoneHandler struct {
// What type of message should trigger the handler?
//
// The filter results are ORed together.
Rules *rule.Rules
// The handler function of the Handler. Will be triggerd by []Command
//
// The handlers will be triggered according to the loading order(plugin first, then the handler)
//
// Return true if you want to block the propagation, false if you want other plugins to handle it too.
Handler func(a *adapter.Adapter, msg message.Message) bool
}
GoneHandler discribes a handler for a plugin.
type GonePlugin ¶
type GonePlugin struct {
// The name of the plugin.
Name string
// The description of the plugin.
Description string
// The version of the plugin
Version string
// Handlers of the plugin.
Handlers []GoneHandler
}
Use this to create your own plugin.
Click to show internal directories.
Click to hide internal directories.