ghttp

package
v0.0.0-...-5823538 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodGet     = "Get"
	MethodHead    = "Head"
	MethodPost    = "Post"
	MethodPut     = "Put"
	MethodPatch   = "Patch"
	MethodDelete  = "Delete"
	MethodConnect = "Connect"
	MethodOptions = "Options"
	MethodTrace   = "Trace"
)

Variables

Functions

func ForbiddenHandler

func ForbiddenHandler(context *gin.Context)

func MethodNotAllowedHandler

func MethodNotAllowedHandler(context *gin.Context)

func PageNotFoundHandler

func PageNotFoundHandler(context *gin.Context)

func SetForbiddenResponse

func SetForbiddenResponse(response interface{})

func SetMethodNotAllowedResponse

func SetMethodNotAllowedResponse(response interface{})

func SetPageNotFoundResponse

func SetPageNotFoundResponse(response interface{})

Types

type Context

type Context struct {
	*gin.Context
	User auth.User
}

func NewContext

func NewContext(context *gin.Context, user auth.User) *Context

type HandlerFunc

type HandlerFunc func(*Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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