session

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(hashKey, blockKey []byte, opt *http.Cookie) sessions.Store

func Set

func Set(sess *sessions.Session, i Info) *sessions.Session

Types

type Info

type Info struct {
	UserID   string
	Deadline int64
}

func Get

func Get(sess *sessions.Session) Info

Jump to

Keyboard shortcuts

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