middleware

package
v0.0.0-...-c470439 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestLogger

func RequestLogger(next http.Handler) http.Handler

Types

type RequireUser

type RequireUser struct{}

func (*RequireUser) Apply

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

func (*RequireUser) ApplyFunc

func (mw *RequireUser) ApplyFunc(nextHandlerFunc http.HandlerFunc) http.HandlerFunc

type User

type User struct {
	models.UserService
}

func (*User) Apply

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

func (*User) ApplyFunc

func (mw *User) ApplyFunc(nextHandlerFunc http.HandlerFunc) http.HandlerFunc

Jump to

Keyboard shortcuts

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