scsmiddleware

package
v2.8.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SessionMiddleware

func SessionMiddleware(store *scs.SessionManager) func(next router.Handler) router.Handler

Customized version of scs's Middleware function This is due to the fact that the original Middleware function does not support the router.Handler interface

Types

type BufferedResponseWriter

type BufferedResponseWriter struct {
	http.ResponseWriter
	Buf         bytes.Buffer
	Code        int
	WroteHeader bool
}

func (*BufferedResponseWriter) Hijack

func (*BufferedResponseWriter) Push

func (bw *BufferedResponseWriter) Push(target string, opts *http.PushOptions) error

func (*BufferedResponseWriter) Write

func (bw *BufferedResponseWriter) Write(b []byte) (int, error)

func (*BufferedResponseWriter) WriteHeader

func (bw *BufferedResponseWriter) WriteHeader(code int)

Jump to

Keyboard shortcuts

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