sessions

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(rdb *redis.Client, user, sid string) error

func Get

func Get(rdb *redis.Client, user string) ([]*sessions.Session, error)

func GetActivity

func GetActivity(rdb *redis.Client, user string) (map[string]*timestamppb.Timestamp, error)

func LogActivity

func LogActivity(rdb *redis.Client, user, sid string, exp int64) error

func New

func New(_exp int64, user string) *sessions.Session

func Revoke

func Revoke(rdb *redis.Client, user, sid string) error

func Store

func Store(rdb *redis.Client, user string, session *sessions.Session) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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