add basic plugin architecture

This commit is contained in:
2022-11-01 21:15:32 +01:00
parent e0e0290dcf
commit d484d44981
15 changed files with 150 additions and 28 deletions

View File

@@ -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)
}