v1

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: MIT-0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAPIV1Routes

func CreateAPIV1Routes(context *serverContext.Context, api fiber.Router)

func UnprocessableEntityResponse

func UnprocessableEntityResponse(ctx *fiber.Ctx, errors []*ValidationError) error

Types

type ApiV1

type ApiV1 struct {
	// contains filtered or unexported fields
}

type ValidationError

type ValidationError struct {
	FailedField string
	Tag         string
	Value       string
}

func ValidateStruct

func ValidateStruct(structToValidate interface{}) []*ValidationError

func ValidationErrorFromError

func ValidationErrorFromError(field string, err error) *ValidationError

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL