Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int64ToByte ¶
Types ¶
type ErrorDetail ¶
type GlobalErrorHandlerResp ¶
type HttpErrorHandler ¶
type HttpErrorHandler struct {
// contains filtered or unexported fields
}
func (HttpErrorHandler) Response ¶
func (h HttpErrorHandler) Response(c *fiber.Ctx, err error) error
type HttpServer ¶
type HttpServer struct { App *fiber.App ErrorHandler *HttpErrorHandler // contains filtered or unexported fields }
func (*HttpServer) Cleanup ¶
func (h *HttpServer) Cleanup()
func (*HttpServer) Start ¶
func (h *HttpServer) Start()
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(validate *validator.Validate) *Validator
func (Validator) Validate ¶
func (v Validator) Validate(data any) []ErrorDetail
func (Validator) ValidateField ¶
func (v Validator) ValidateField(field any, fieldName, tag string) *ErrorDetail
Click to show internal directories.
Click to hide internal directories.