mymiddleware

package
v0.0.0-...-140d0cf Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnauthorized is the error returned for unauthorized requests.
	ErrUnauthorized = goa.NewErrorClass("unauthorized", 401)
	// ErrInternalServer is the error returned for internal error.
	ErrInternalServer = goa.NewErrorClass("internal error", 500)
)

Functions

func NewAdminUserAuthMiddleware

func NewAdminUserAuthMiddleware() goa.Middleware

NewAdminUserAuthMiddleware token check authority type is admin

func NewGeneralUserAuthMiddleware

func NewGeneralUserAuthMiddleware() goa.Middleware

NewGeneralUserAuthMiddleware token check authority type is general

func NewTestModeMiddleware

func NewTestModeMiddleware() goa.Middleware

NewTestModeMiddleware token check none executing

Types

This section is empty.

Jump to

Keyboard shortcuts

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