neko/pkg/types/plugins.go
2022-04-15 19:28:00 +00:00

23 lines
344 B
Go

package types
import (
"github.com/spf13/cobra"
)
type Plugin interface {
Config() PluginConfig
Start(PluginManagers)
Shutdown() error
}
type PluginConfig interface {
Init(cmd *cobra.Command) error
Set()
}
type PluginManagers struct {
SessionManager SessionManager
WebSocketManager WebSocketManager
ApiManager ApiManager
}