session

package
v0.0.0-...-532783a Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisSession

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

func NewRedisSession

func NewRedisSession() (*RedisSession, error)

func (*RedisSession) DeleteSession

func (s *RedisSession) DeleteSession(session string) error

func (*RedisSession) GenerateSession

func (s *RedisSession) GenerateSession(userId string) (string, error)

func (*RedisSession) GetUserIDBySession

func (s *RedisSession) GetUserIDBySession(session string) (string, error)

type Session

type Session interface {
	GenerateSession(userId string) (string, error)
	GetUserIDBySession(session string) (string, error)
	DeleteSession(session string) error
}

Jump to

Keyboard shortcuts

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