package
0.0.0-20230101183712-202847b4b89b
Repository: https://github.com/corestoreio/csfw.git
Documentation: pkg.go.dev

# Functions

CodeIsValid checks if a store code is valid.
FromContextRunMode returns the run mode scope.TypeID from a context.
WithContextRunMode sets the main run mode for the current request.
WithRunMode sets for each request the overall runMode aka.

# Constants

CodeFieldName defines the filed name where store code has been saved.
CodeMaxLen defines the overall maximum length a store code can have.
CodeURLFieldName name of the GET parameter to set a new store in a current website/group context/request.
Default defines the default run mode which is zero.

# Structs

Options additional customizations for the runMode middleware.
ProcessStoreCodeCookie can extract the store code from a cookie within an HTTP Request.

# Interfaces

Calculater core type to initialize the run mode of the current request.
CodeProcessor gets used in the middleware WithRunMode() to extract a store code from a Request and modify the response; for example setting cookies to persists the selected store.

# Type aliases

RunModeFunc type is an adapter to allow the use of ordinary functions as Calculater.