17 lines
348 B
Go
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
|
|
}
|