sessions

package
v0.0.0-...-46db650 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sessions

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

Sessions 会话数据

func New

func New(session *sessions.Session) *Sessions

New 新建Session

func (*Sessions) Clear

func (s *Sessions) Clear() interface{}

Clear 删除所有会话数据

func (*Sessions) Delete

func (s *Sessions) Delete(key interface{}) interface{}

Delete 删除会话数据

func (*Sessions) Exist

func (s *Sessions) Exist(key string) bool

Exist 是否存在会话数据

func (*Sessions) Get

func (s *Sessions) Get(key interface{}) interface{}

Get 获得会话数据

func (*Sessions) Set

func (s *Sessions) Set(key, value interface{}) interface{}

Set 设置会话数据

func (*Sessions) Written

func (s *Sessions) Written() bool

Written 是否已有写入

Jump to

Keyboard shortcuts

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