Documentation ¶
Index ¶
- func GetAuthToken(r *http.Request) string
- func GetDefinition(r *http.Request) *apidef.APIDefinition
- func GetSession(r *http.Request) *user.SessionState
- func SetDefinition(r *http.Request, s *apidef.APIDefinition)
- func SetSession(r *http.Request, s *user.SessionState, scheduleUpdate bool, hashKey ...bool)
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthToken ¶
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 ¶
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 )
Click to show internal directories.
Click to hide internal directories.