mid

package
v0.0.0-...-34625af Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefMiddlewareService

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

func NewMiddleware

func NewMiddleware(a *config.AppConfig) *DefMiddlewareService

func (*DefMiddlewareService) NoSrurf

func (s *DefMiddlewareService) NoSrurf(next http.Handler) http.Handler

NoSurf adds CSRF protection to all POST requests

func (*DefMiddlewareService) SessionLoad

func (s *DefMiddlewareService) SessionLoad(next http.Handler) http.Handler

SessionLoad loads and saves the session on every request

func (*DefMiddlewareService) WritetoConsole

func (s *DefMiddlewareService) WritetoConsole(next http.Handler) http.Handler

type MiddlewareService

type MiddlewareService interface {
	WritetoConsole(next http.Handler) http.Handler
	NoSrurf(next http.Handler) http.Handler
	SessionLoad(next http.Handler) http.Handler
}

Jump to

Keyboard shortcuts

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