api

package
v0.0.0-...-4061f55 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

CORS middleware function.

func Filtered

func Filtered(query *gorm.DB, ctx *fasthttp.RequestCtx) *gorm.DB

Filtered query using query params

func Paged

func Paged(query *gorm.DB, ctx *fasthttp.RequestCtx) *gorm.DB

Paged query using query params

func Redirect

func Redirect(to string) fasthttp.RequestHandler

Redirect handler to a specific path.

func Response

func Response(ctx *fasthttp.RequestCtx, code int, data interface{})

Response from an API endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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