middleware

package
v0.0.0-...-e50a543 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package middleware provides HTTP middleware

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

Middleware provides http middleware

func New

func New(gin *gin.Engine) *Middleware

New provides middleware funcs

func (*Middleware) Auth

func (h *Middleware) Auth()

Auth provides the authentication callback and redirect URL required for clients to authenticate themselves

func (*Middleware) CorsConfig

func (h *Middleware) CorsConfig() gin.HandlerFunc

CorsConfig provides cors

func (*Middleware) NotFound

func (h *Middleware) NotFound(c *gin.Context)

NotFound provides 404 route handling

Jump to

Keyboard shortcuts

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