session

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 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