utils

package
v0.0.0-...-8d92f6c Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var STATUS_MESSAGES = map[int]string{
	100: "OK",
	101: "Resource is not implemented",
	102: "Invalid UUID format",
	103: "Resource not found",
	104: "Bad request",
	105: "Failed to create resource",
	106: "Failed to update resource",
	107: "Failed to delete resource",
	108: "Invalid data provided",
}

Functions

func Jsonify

func Jsonify(state interface{}, metadata interface{}, status int, code int, headers map[string]string) fiber.Map

func Now

func Now() time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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