change signature of interfaces to fit Interface interface

This commit is contained in:
Robin Olsen
2026-02-12 19:57:52 +01:00
parent 0b840f87d8
commit 08ded5384c
4 changed files with 35 additions and 9 deletions

View File

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