WIP: extension feature

This commit is contained in:
2020-11-17 09:19:15 +01:00
parent fe90d81b5d
commit 8b85f60e63
9 changed files with 179 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package main
type MyExtension struct {
}
func (e *MyExtension) ExtensionName() string {
return "my.extension"
}
func (e *MyExtension) ExtensionVersion() string {
return "0.0.0"
}

View File

@ -0,0 +1,11 @@
package main
import (
"context"
"gitlab.com/wpetit/goweb/extension"
)
func RegisterExtension(ctx context.Context) (extension.Extension, error) {
return &MyExtension{}, nil
}