ouichat/plugins/plugin.go
2020-05-13 21:52:06 -05:00

17 lines
348 B
Go

package plugins
import (
"ouichat/core"
)
type Plugin interface {
// Name is a unique name
Name() string
// Start is executed before anything
Init(man *PluginManager, root *core.BufferNode)
// Buffers gets a list of the buffers underneath this one
// the root one given to the plugin must be returned
Buffers() *core.BufferNode
}