sessionutils

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractStateDeltas

func ExtractStateDeltas(delta map[string]any) (
	appStateDelta, userStateDelta, sessionStateDelta map[string]any,
)

ExtractStateDeltas splits a single state delta map into three separate maps for app, user, and session states based on key prefixes. Temporary keys (starting with TempStatePrefix) are ignored.

func MergeStates

func MergeStates(appState, userState, sessionState map[string]any) map[string]any

MergeStates combines app, user, and session state maps into a single map for client-side responses, adding the appropriate prefixes back.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL