util

package
v1.2.0-Beta.2.0...-bcfade6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnknownPod = errors.New("unknown pod")
	Client     *kubernetes.Clientset
	Node       string
)
View Source
var (
	CFConnectingIP = http.CanonicalHeaderKey("CF-Connecting-IP")
	XForwardedFor  = http.CanonicalHeaderKey("X-Forwarded-For")
	XRealIP        = http.CanonicalHeaderKey("X-Real-IP")
	Authorization  = http.CanonicalHeaderKey("Authorization")
	ContentType    = http.CanonicalHeaderKey("Content-Type")
	TokenPattern   = regexp.MustCompile("DELAPI_.{32}-([0-9]{17,20})")
)
View Source
var (
	Database = database.NewManager()
	Router   chi.Router
	Dev      bool
)

Functions

func BuildClient

func BuildClient()

func FindKubernetesNode

func FindKubernetesNode() error

func InitSentry

func InitSentry()

func RealIP

func RealIP(handler http.Handler) http.Handler

func Scan

func Scan[T any](key string) map[string]T

Types

This section is empty.

Jump to

Keyboard shortcuts

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