👔 Created use case for server module
This commit is contained in:
parent
c05feef09b
commit
7d5b04e642
|
@ -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")
|
||||
)
|
Loading…
Reference in New Issue