util

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionTxtFile = "version.txt"

Functions

func NewCors

func NewCors(handler http.Handler) http.Handler

func NewLogger

func NewLogger(handler http.Handler) http.Handler

func NewTokenOverwrite

func NewTokenOverwrite(config configuration.Config, handler http.Handler) http.Handler

func NewVersionHeaderMiddleware

func NewVersionHeaderMiddleware(handler http.Handler) http.Handler

Types

type CorsMiddleware

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

func (*CorsMiddleware) ServeHTTP

func (this *CorsMiddleware) ServeHTTP(res http.ResponseWriter, req *http.Request)

type LoggerMiddleWare

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

func (*LoggerMiddleWare) ServeHTTP

func (this *LoggerMiddleWare) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TokenOverwriteMiddleWare

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

func (*TokenOverwriteMiddleWare) ServeHTTP

func (this *TokenOverwriteMiddleWare) ServeHTTP(w http.ResponseWriter, r *http.Request)

type VersionHeaderMiddleware

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

func (*VersionHeaderMiddleware) ServeHTTP

func (this *VersionHeaderMiddleware) 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