Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestToMap ¶
RequestToMap converts an http.Request to a map[string]any using the httpRequest struct as an intermediary.
func SHA256Bytes ¶
func SetupLogger ¶
func SetupLogger( handler slog.Handler, engineName string, groupName string, ) (slog.Handler, *slog.Logger)
SetupLogger creates a properly configured logger for script engine implementations. If the provided handler is nil, it creates a default handler with appropriate grouping.
Parameters:
- handler: The slog.Handler to use, or nil for defaults
- vmName: The name of the script engine (e.g., "starlark", "risor")
- groupName: Optional additional group name within the engine
Returns:
- The configured handler
- A logger created from the handler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.