session

package module
v0.0.0-...-2c34b4b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session interface {
	Get(http.ResponseWriter, *http.Request) map[string]interface{}
	Set(map[string]interface{}, http.ResponseWriter, *http.Request)
	SetCookieExpires(map[string]interface{}, int)
}

Directories

Path Synopsis
由于跨程序共享session使用的是Gob,在session中有用户自定义类型时,如果另一程序未预先注册此UserType,会报错 因此,暂不考虑跨程序共享session时的资源互斥问题,顾将//(1)处代码注释掉
由于跨程序共享session使用的是Gob,在session中有用户自定义类型时,如果另一程序未预先注册此UserType,会报错 因此,暂不考虑跨程序共享session时的资源互斥问题,顾将//(1)处代码注释掉

Jump to

Keyboard shortcuts

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