change signature of interfaces to fit Interface interface
This commit is contained in:
@@ -11,10 +11,16 @@ import (
|
||||
|
||||
type WebConfig = service.Config
|
||||
|
||||
type Web struct{}
|
||||
|
||||
func NewWeb() *Web {
|
||||
return &Web{}
|
||||
}
|
||||
|
||||
//go:embed assets/*
|
||||
var assets embed.FS
|
||||
|
||||
func Run(ctx context.Context, config WebConfig) error {
|
||||
func (w Web) Run(ctx context.Context, config WebConfig) error {
|
||||
svc, cleanup, err := service.NewServices(ctx, config)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user