middleware

package
v0.0.0-...-945c817 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SessionName = "user-session"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

func NewMiddleware

func NewMiddleware(ss sessions.Store, logger *zap.SugaredLogger, token *token.HashToken,
	clientUrl string, uClient clients.ClientUser) Middleware

func (*Middleware) AccessLogMiddleware

func (m *Middleware) AccessLogMiddleware(next http.Handler) http.Handler

func (*Middleware) AuthenticateUser

func (m *Middleware) AuthenticateUser(next http.Handler) http.Handler

func (*Middleware) CORSMiddleware

func (m *Middleware) CORSMiddleware(next http.Handler) http.Handler

func (*Middleware) CheckTokenMiddleware

func (m *Middleware) CheckTokenMiddleware(next http.Handler) http.Handler

func (*Middleware) RequestIDMiddleware

func (m *Middleware) RequestIDMiddleware(next http.Handler) http.Handler

func (*Middleware) SavePrevRequest

func (m *Middleware) SavePrevRequest(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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