Documentation
¶
Index ¶
- func DetermineFormat(c fiber.Ctx) string
- func Initialize(v string)
- func ParseExpandQuery(c fiber.Ctx) []string
- func SendCreated(c fiber.Ctx, data interface{}) error
- func SendError(c fiber.Ctx, statusCode int, message string) error
- func SendFormatted(c fiber.Ctx, statusCode int, data interface{}) error
- func SendJSON(c fiber.Ctx, statusCode int, data interface{}) error
- func SendSuccess(c fiber.Ctx, data interface{}) error
- func SetCommonHeaders(c fiber.Ctx)
- func SetContentTypeHeader(c fiber.Ctx, format string)
- func ValidateAndRespond(c fiber.Ctx, s interface{}) error
- func ValidateStruct(s interface{}) error
- type ValidationExample
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineFormat ¶
func Initialize ¶ added in v0.3.6
func Initialize(v string)
func ParseExpandQuery ¶ added in v0.3.6
func SendCreated ¶
func SendSuccess ¶
TODO refactor to more flexible Send method with status code
func SetCommonHeaders ¶ added in v0.3.6
func SetContentTypeHeader ¶ added in v0.4.6
func ValidateAndRespond ¶
func ValidateStruct ¶
func ValidateStruct(s interface{}) error
Types ¶
type ValidationExample ¶
Click to show internal directories.
Click to hide internal directories.