Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(opts Options)
Init gloabal session manager It uses env config first, the key is localsession.SESSION_CONFIG_KEY
func RecoverCtxOnDemands ¶
func RecoverCtxOnDemands(ctx context.Context, handler BackupHandler) context.Context
If handler != nil, this func will try to merge metainfo and pre-defined key-values (through Options.BackupHanlder) from backup context into given context
Types ¶
type BackupHandler ¶
BackupHandler is used to decide and recover prev context to cur context
Click to show internal directories.
Click to hide internal directories.