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: 0

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