Documentation
¶
Index ¶
- Constants
- func AccessLogMiddleware(logSuccessfulRequests, excludeRemoteAddr bool, excludedHeaderPatterns []string, ...) http.Handler
- func CORSMiddleware(allowedOrigins []string, allowedMethods []string, allowedHeaders []string, ...) http.HandlerFunc
- func CommonHeadersMiddleware(next http.Handler) http.Handler
- func PostgresMiddleware(pool *pgxpool.Pool, mode pgx.TxAccessMode, next http.Handler) http.Handler
- func PreventCachingMiddleware(next http.Handler) http.HandlerFunc
- func RequestIDMiddleware(next http.Handler) http.HandlerFunc
- func TenantIDMiddleware(next http.Handler) http.HandlerFunc
- func TokenMiddleware(next http.Handler) http.HandlerFunc
- func TraceMiddleware(next http.Handler) http.Handler
- type Handlers
Constants ¶
View Source
const RequestIDHeaderName = "X-Request-ID"
View Source
const TenantIDHeaderName = "X-GreenSTAR-Tenant-ID"
Variables ¶
This section is empty.
Functions ¶
func AccessLogMiddleware ¶
func CORSMiddleware ¶
func PostgresMiddleware ¶
func PreventCachingMiddleware ¶
func PreventCachingMiddleware(next http.Handler) http.HandlerFunc
func RequestIDMiddleware ¶
func RequestIDMiddleware(next http.Handler) http.HandlerFunc
func TenantIDMiddleware ¶
func TenantIDMiddleware(next http.Handler) http.HandlerFunc
func TokenMiddleware ¶
func TokenMiddleware(next http.Handler) http.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.