redis

package
v0.0.0-...-0de0edb Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSessionRedisStorage

func NewSessionRedisStorage(db *redis.Client, logger logger.Logger) ports.SessionRedisStorage

func TokenFromDB

func TokenFromDB(dbToken DBToken) (entity.Token, error)

TokenFromDB Convert database token model to domain model.

Types

type DBToken

type DBToken struct {
	ID        string
	UserID    string
	ExpiresIn int64
}

DBToken Database session representation.

func TokenToDB

func TokenToDB(session entity.Token) DBToken

TokenToDB Convert domain token model to database model.

Jump to

Keyboard shortcuts

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