Documentation ¶
Index ¶
- type Plugin
- type PluginEngine
- func (pe *PluginEngine) EnqueueCommand(cmd string)
- func (pe *PluginEngine) EnqueueText(text string)
- func (pe *PluginEngine) GetPlugins() []*Plugin
- func (pe *PluginEngine) ReceiveCommands() chan string
- func (pe *PluginEngine) ReceiveProcessedCommands() chan string
- func (pe *PluginEngine) ReceiveTextLines() chan types.BufferOutput
- func (pe *PluginEngine) Start()
- type PluginEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { Name string IsActive bool Path string State *lua.LState Engine *PluginEngine Actions map[string]*lua.LFunction Aliases map[string]*lua.LFunction Events map[PluginEvent]*lua.LFunction }
func (*Plugin) CheckAndExecuteAction ¶
func (*Plugin) CheckAndExecuteAlias ¶
type PluginEngine ¶
type PluginEngine struct {
// contains filtered or unexported fields
}
func NewPluginEngine ¶
func NewPluginEngine(logger util.Logger, conf *config.Config) *PluginEngine
func (*PluginEngine) EnqueueCommand ¶
func (pe *PluginEngine) EnqueueCommand(cmd string)
func (*PluginEngine) EnqueueText ¶
func (pe *PluginEngine) EnqueueText(text string)
func (*PluginEngine) GetPlugins ¶
func (pe *PluginEngine) GetPlugins() []*Plugin
func (*PluginEngine) ReceiveCommands ¶
func (pe *PluginEngine) ReceiveCommands() chan string
func (*PluginEngine) ReceiveProcessedCommands ¶
func (pe *PluginEngine) ReceiveProcessedCommands() chan string
func (*PluginEngine) ReceiveTextLines ¶
func (pe *PluginEngine) ReceiveTextLines() chan types.BufferOutput
func (*PluginEngine) Start ¶
func (pe *PluginEngine) Start()
type PluginEvent ¶
type PluginEvent int
const ( ProxyConnectEvent PluginEvent = iota ProxyDisconnectEvent )
Click to show internal directories.
Click to hide internal directories.