mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
load plugins in order of dependencies.
This commit is contained in:
@ -13,6 +13,11 @@ type Plugin interface {
|
||||
Shutdown() error
|
||||
}
|
||||
|
||||
type DependablePlugin interface {
|
||||
Plugin
|
||||
DependsOn() []string
|
||||
}
|
||||
|
||||
type ExposablePlugin interface {
|
||||
Plugin
|
||||
ExposeService() any
|
||||
|
Reference in New Issue
Block a user