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, token string, scheduleUpdate 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 VersionDefault OrgSessionContext ContextData RetainHost TrackThisEndpoint DoNotTrackThisEndpoint UrlRewritePath RequestMethod OrigRequestURL LoopLevel LoopLevelLimit ThrottleLevel ThrottleLevelLimit Trace CheckLoopLimits UrlRewriteTarget TransformedRequestMethod Definition RequestStatus )
Click to show internal directories.
Click to hide internal directories.