pgsession

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBSession

type DBSession struct {
	UserUUID               string    `db:"user_uuid"`
	RememberTokenHash      string    `db:"remember_token_hash"`
	RememberTokenExpiresAt time.Time `db:"remember_token_expires_at"`
}

type Repository

type Repository struct {
	pgbase.Repository
}

func NewRepository

func NewRepository(pool *pgxpool.Pool) *Repository

func (*Repository) SessionAdd

func (r *Repository) SessionAdd(sess session.Session) error

func (*Repository) SessionGetByRememberTokenHash

func (r *Repository) SessionGetByRememberTokenHash(hash string) (session.Session, error)

Jump to

Keyboard shortcuts

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