Add plugin loader interface
This commit is contained in:
parent
e8b93d7597
commit
8148633920
@ -131,3 +131,7 @@ type Logger interface {
|
|||||||
Crit(string, ...interface{})
|
Crit(string, ...interface{})
|
||||||
Error(string, ...interface{})
|
Error(string, ...interface{})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PluginLoader interface{
|
||||||
|
Lookup(name string, validate func(interface{}) bool) []interface{}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user