sessionmgr

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Req added in v0.0.6

func Req(c context.Context) *http.Request

func Session added in v0.0.6

func Session(c context.Context) *fmodel.Session

func SessionDec

func SessionDec(s string) (t string, id string, hash []byte, err error)

func SessionDel

func SessionDel(rawid string) (err error)

func SessionDelTenantAndId

func SessionDelTenantAndId(t, id string) (err error)

func SessionEnc

func SessionEnc(s *fmodel.Session) (id string, sessbs []byte)

func SessionID added in v0.0.6

func SessionID(c context.Context) string

func SessionLoad

func SessionLoad(rawid string) (sess *fmodel.Session, err error)

func SessionSave

func SessionSave(s *fmodel.Session) (id string, err error)

SessionSave - persists the session.

func Setup added in v0.0.6

func Setup(d *gorm.DB) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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