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
Click to show internal directories.
Click to hide internal directories.