load plugins in order of dependencies.

This commit is contained in:
Aleksandar Sukovic
2022-05-03 11:17:04 +00:00
parent cd2d9b413d
commit 49ff490640
7 changed files with 804 additions and 33 deletions

View File

@ -13,6 +13,11 @@ type Plugin interface {
Shutdown() error
}
type DependablePlugin interface {
Plugin
DependsOn() []string
}
type ExposablePlugin interface {
Plugin
ExposeService() any