handlers

package
v0.0.0-...-db09f8a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthMiddleware

func NewAuthMiddleware(clientService *service.ClientService, userService *service.UserService, permissions []string) func(handler http.Handler) http.Handler

func NewLoggingMiddleware

func NewLoggingMiddleware(logFunc logFunc, excludePrefixes []string) func(http.Handler) http.Handler

Types

type AuthMiddleware

type AuthMiddleware struct {
	// contains filtered or unexported fields
}

func (*AuthMiddleware) ServeHTTP

func (m *AuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LoggingMiddleware

type LoggingMiddleware struct {
	// contains filtered or unexported fields
}

func (*LoggingMiddleware) ServeHTTP

func (lg *LoggingMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SPAHandler

type SPAHandler struct {
	StaticPath      string
	IndexPath       string
	ReplaceBasePath string
	NoCache         bool
	// contains filtered or unexported fields
}

func (*SPAHandler) ServeHTTP

func (h *SPAHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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