middleware

package
v0.0.0-...-a41d4d2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequireUser

type RequireUser struct {
	User
}

RequireUser assumes that User middleware has already been run otherwise it will no work correctly.

func (*RequireUser) Apply

func (mw *RequireUser) Apply(next http.Handler) http.HandlerFunc

Apply assumes that User middleware has already been run otherwise it will no work correctly.

func (*RequireUser) ApplyFn

func (mw *RequireUser) ApplyFn(next http.HandlerFunc) http.HandlerFunc

ApplyFn assumes that User middleware has already been run otherwise it will no work correctly.

type User

type User struct {
	models.UserService
}

func (*User) Apply

func (mw *User) Apply(next http.Handler) http.HandlerFunc

func (*User) ApplyFn

func (mw *User) ApplyFn(next http.HandlerFunc) http.HandlerFunc

Jump to

Keyboard shortcuts

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