redisess

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

func (*Session) Claims

func (sess *Session) Claims() security.Claims

func (*Session) Del

func (sess *Session) Del(ctx context.Context, key string) error

func (*Session) Destroy

func (sess *Session) Destroy(ctx context.Context) error

func (*Session) Get

func (sess *Session) Get(ctx context.Context, key string) mist.AnyValue

func (*Session) Set

func (sess *Session) Set(ctx context.Context, key string, val any) error

type SessionProvider

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

func NewSessionProvider

func NewSessionProvider(client redis.Cmdable, jwtKey string) *SessionProvider

func (*SessionProvider) Get

func (rsp *SessionProvider) Get(ctx *mist.Context) (security.Session, error)

func (*SessionProvider) NewSession

func (rsp *SessionProvider) NewSession(ctx *mist.Context,
	uid int64,
	jwtData map[string]string,
	sessData map[string]any) (security.Session, error)

func (*SessionProvider) RenewAccessToken

func (rsp *SessionProvider) RenewAccessToken(ctx *mist.Context) error

func (*SessionProvider) UpdateClaims

func (rsp *SessionProvider) UpdateClaims(ctx *mist.Context, claims security.Claims) error

Jump to

Keyboard shortcuts

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