ctx

package
v1.7.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MPL-2.0 Imports: 8 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthToken

func GetAuthToken(r *http.Request) string

func GetDefinition

func GetDefinition(r *http.Request) *apidef.APIDefinition

func GetSession

func GetSession(r *http.Request) *user.SessionState

func SetDefinition

func SetDefinition(r *http.Request, s *apidef.APIDefinition)

func SetSession

func SetSession(r *http.Request, s *user.SessionState, scheduleUpdate bool, hashKey ...bool)

Types

type Key

type Key uint
const (
	SessionData Key = iota
	UpdateSession
	AuthToken
	HashedAuthToken
	VersionData
	VersionName
	VersionDefault
	OrgSessionContext
	ContextData
	RetainHost
	TrackThisEndpoint
	DoNotTrackThisEndpoint
	UrlRewritePath
	RequestMethod
	OrigRequestURL
	LoopLevel
	LoopLevelLimit
	ThrottleLevel
	ThrottleLevelLimit
	Trace
	CheckLoopLimits
	UrlRewriteTarget
	TransformedRequestMethod
	Definition
	RequestStatus
	GraphQLRequest
	GraphQLIsWebSocketUpgrade
	OASOperation

	// CacheOptions holds cache options required for cache writer middleware.
	CacheOptions
)

Jump to

Keyboard shortcuts

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