2023-12-09 06:03:35 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
"source.toby3d.me/toby3d/home/internal/domain"
|
|
|
|
)
|
|
|
|
|
|
|
|
type UseCase interface {
|
2024-01-29 05:52:22 +00:00
|
|
|
Do(ctx context.Context, lang domain.Language) (*domain.Server, error)
|
2023-12-09 06:03:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2023-12-09 06:43:36 +00:00
|
|
|
ErrServerHeaders error = errors.New("'server' param in site not contains 'headers' param")
|
|
|
|
ErrServerRedirects error = errors.New("'server' param in site not contains 'redirects' param")
|
2023-12-09 06:03:35 +00:00
|
|
|
)
|