Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct { AuthPath string ExcludedPaths []string ProtectedPaths []string // contains filtered or unexported fields }
func NewAuthMiddleware ¶
func NewAuthMiddleware(redirectToAuthPath string, protectedPaths []string, excludedPaths []string, authHelper *helpers.AuthHelper) *AuthMiddleware
func (*AuthMiddleware) EnsureAuth ¶
func (a *AuthMiddleware) EnsureAuth(next http.Handler) http.Handler
func (*AuthMiddleware) IsProtected ¶
func (a *AuthMiddleware) IsProtected(path string) bool
type LogMiddleware ¶
type LogMiddleware struct {
// contains filtered or unexported fields
}
func NewLogMiddleware ¶
func NewLogMiddleware(logger *log.Logger) *LogMiddleware
func (*LogMiddleware) LogRequests ¶
func (l *LogMiddleware) LogRequests(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.