Imported from hako

This commit is contained in:
Felipe M 2024-11-20 23:21:03 +01:00
parent f8377df327
commit 8b8447213f
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
10 changed files with 315 additions and 0 deletions

9
model/server.go Normal file
View file

@ -0,0 +1,9 @@
package model
import "context"
type Server interface {
IsEnabled() bool
Start(context.Context) error
Stop(context.Context) error
}

9
model/service.go Normal file
View file

@ -0,0 +1,9 @@
package model
import "context"
type Service interface {
Start(context.Context) error
Stop(context.Context) error
WaitStop(context.Context) error
}

5
model/template.go Normal file
View file

@ -0,0 +1,5 @@
package model
type TemplateEngine interface {
Render(name string, data any) ([]byte, error)
}