add basic plugin architecture
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
package register
|
||||
|
||||
type Plugin interface {
|
||||
About() string
|
||||
import "context"
|
||||
|
||||
type About struct {
|
||||
Name string `json:"name"`
|
||||
Version string `json:"version"`
|
||||
About string `json:"about"`
|
||||
}
|
||||
|
||||
type Plugin interface {
|
||||
About(ctx context.Context) (*About, error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user