MCPcopy Create free account
hub / github.com/corestoreio/pkg / WithRunMode

Function WithRunMode

net/runmode/middleware.go:124–224  ·  view source on GitHub ↗

WithRunMode sets for each request the overall runMode aka. scope. The following steps will be performed: 1. Call to AppRunMode.RunMode.CalculateMode to get the default run mode. 2a. Parse Request GET parameter for the store code key (___store). 2b. If GET is empty, check cookie for key "store" 2

(sf store.Finder, o Options)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 13

WithContextRunModeFunction · 0.85
ServeHTTPMethod · 0.80
CalculateRunModeMethod · 0.65
DefaultStoreIDMethod · 0.65
FromRequestMethod · 0.65
ProcessAllowedMethod · 0.65
StoreIDbyCodeMethod · 0.65
StringMethod · 0.65
ProcessDeniedMethod · 0.65
ContextMethod · 0.45
DebugMethod · 0.45
ErrMethod · 0.45

Tested by

no test coverage detected