Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterModule ¶
func RegisterModule(instance Module)
Types ¶
type BotModule ¶
type CleanerUpper ¶
type CleanerUpper interface {
Cleanup() error
}
type Context ¶
func NewContext ¶
type DependsOn ¶
type DependsOn interface {
DependsOn() []string
}
DependsOn 依赖项,此配置决定了模块加载顺序,如果未指定则全部在最后加载
type LoggerFactory ¶
type Module ¶
type Module interface {
BotModule() ModuleInfo
}
type ModuleGroup ¶
type ModuleGroup struct {
ModuleInfo
Mods []*BotModule
// contains filtered or unexported fields
}
type ModuleInfo ¶
func GetModule ¶
func GetModule(name string) (ModuleInfo, error)
GetModule returns module information from its ID (full name).
type Provisioner ¶
Click to show internal directories.
Click to hide internal directories.