session

package
v0.0.0-...-6b9a538 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigKey string = "mw-session"

Variables

This section is empty.

Functions

func MW

func MW(app *omg.AppContext) omg.MW

Types

type ConfigInfo

type ConfigInfo struct {
	Key    string
	MaxAge int
}

type Session

type Session struct {
	// contains filtered or unexported fields
}

func (*Session) Clear

func (sess *Session) Clear()

func (*Session) Get

func (sess *Session) Get() (interface{}, error)

func (*Session) Set

func (sess *Session) Set(value interface{})

type SessionError

type SessionError struct {
	// contains filtered or unexported fields
}

func (*SessionError) Error

func (sessError *SessionError) Error() string

Jump to

Keyboard shortcuts

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