middleware

package
v1.1.3-0...-aec955e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NOT_AUTHORIZED = Message{
	Message: "not authorized",
	Code:    1,
}

Functions

func OAuthHandler

func OAuthHandler(next buffalo.Handler) buffalo.Handler

func RequireAuth

func RequireAuth(shouldRedirect bool) func(next buffalo.Handler) buffalo.Handler

Types

type Message

type Message struct {
	Message string `json:"msg"`
	Code    int    `json:"code"`
}

Jump to

Keyboard shortcuts

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