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 (bw *BufferedResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
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)
Click to show internal directories.
Click to hide internal directories.