👔 Created use case for server module

This commit is contained in:
Maxim Lebedev 2023-12-09 12:03:35 +06:00
parent c05feef09b
commit 7d5b04e642
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
package server
import (
"context"
"errors"
"source.toby3d.me/toby3d/home/internal/domain"
)
type UseCase interface {
Do(ctx context.Context, site domain.Site) (*domain.Server, error)
}
var (
ErrParams error = errors.New("site not contains any params")
ErrServer error = errors.New("site not contains 'server' param")
ErrServerHeader error = errors.New("'server' param in site not contains 'header' param")
)