mirror of
https://github.com/versia-pub/versia-go.git
synced 2025-12-06 22:38:20 +01:00
17 lines
292 B
Go
17 lines
292 B
Go
package validators
|
|
|
|
import (
|
|
"context"
|
|
"github.com/gofiber/fiber/v2"
|
|
"net/http"
|
|
)
|
|
|
|
type BodyValidator interface {
|
|
Validate(v any) error
|
|
}
|
|
|
|
type RequestValidator interface {
|
|
Validate(ctx context.Context, r *http.Request) error
|
|
ValidateFiberCtx(ctx context.Context, c *fiber.Ctx) error
|
|
}
|