session

package
v0.0.0-...-cd24349 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInvokerCfg = InvokerCfg{
	Debug:     false,
	Mode:      "memory",
	MangerCfg: DefaultManagerConfig,
}
View Source
var DefaultManagerConfig = &session.ManagerConfig{
	CookieName:      "gosessionid",
	Gclifetime:      10,
	EnableSetCookie: true,
}

Functions

func DefaultBuild

func DefaultBuild() module.Invoker

default invoker build

func Invoker

func Invoker(name string) *session.Manager

invoker

Types

type InvokerCfg

type InvokerCfg struct {
	Debug     bool
	Mode      string
	MangerCfg *session.ManagerConfig
}

* [beego.session.mysession]

mode = "memory"
debug = true

[beego.session.mysession.mangerCfg]

cookieName = "gosessionid"
gclifetime = 10
enableSetCookie = true

Jump to

Keyboard shortcuts

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