Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SessionManager session.ManagerInterface FallbackPath string IgnoredPaths []string IgnoredPrefixes []string AllowedExtensions []string IgnoreFunc func(*http.Request) bool }
Config redirect back config
type RedirectBack ¶
type RedirectBack struct { Ignore func(req *http.Request) bool IgnorePath func(pth string) bool // contains filtered or unexported fields }
RedirectBack redirect back struct
func (*RedirectBack) Middleware ¶
func (redirectBack *RedirectBack) Middleware(handler http.Handler) http.Handler
Middleware returns a RedirectBack middleware instance that record return_to path
func (*RedirectBack) RedirectBack ¶
func (redirectBack *RedirectBack) RedirectBack(w http.ResponseWriter, req *http.Request)
RedirectBack redirect back to last visited page
Click to show internal directories.
Click to hide internal directories.