context

package
v0.0.0-...-d5ce8da Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRequestContext

func SetRequestContext(r *http.Request) *http.Request

Types

type RequestContext

type RequestContext struct {
	Store             store.Store
	StoreAuthToken    string
	PeerToken         string
	IsProxyAuthorized bool
	ProxyAuthUser     string
	ProxyAuthPassword string
	ClientIP          string // optional
}

func GetRequestContext

func GetRequestContext(r *http.Request) *RequestContext

Jump to

Keyboard shortcuts

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