util

package
v0.2.50 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthToken

func GetAuthToken(req *http.Request) string

Types

type CorsMiddleware

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

func NewCors

func NewCors(handler http.Handler) *CorsMiddleware

func (*CorsMiddleware) ServeHTTP

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

type MirrorMiddleware added in v0.2.44

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

func NewMirrorMiddleware added in v0.2.44

func NewMirrorMiddleware(handler http.Handler, config configuration.Config, pull MirrorPull) *MirrorMiddleware

func (*MirrorMiddleware) GetToken added in v0.2.44

func (this *MirrorMiddleware) GetToken() (result string, err error)

func (*MirrorMiddleware) ServeHTTP added in v0.2.44

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

type MirrorPull added in v0.2.49

type MirrorPull interface {
	MirrorUpdate() error
}

Jump to

Keyboard shortcuts

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