utils

package
v0.0.0-...-85a151d Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(w http.ResponseWriter, message string, err error, status int)

func Message

func Message(status bool, message string) map[string]interface{}

Types

type Filter

type Filter struct {
	Key   string
	Value string
}

func NewFilters

func NewFilters(r *http.Request, keys []string) []Filter

type Page

type Page struct {
	Page    int
	Limit   int
	OrderBy []string
}

func NewPage

func NewPage(r *http.Request) Page

Jump to

Keyboard shortcuts

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