sessiondb

package
v0.0.0-...-ac0e98d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sessiondb contains session related CRUD functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store manages the set of APIs for session database access.

func NewStore

func NewStore(log *zerolog.Logger, db *sqlx.DB) *Store

NewStore constructs the api for data access.

func (*Store) Create

func (s *Store) Create(sessn session.Session) error

Create inserts a new session into the database.

func (*Store) QueryByID

func (s *Store) QueryByID(id uuid.UUID) (session.Session, error)

QueryByID gets the specified session from the database by id.

Jump to

Keyboard shortcuts

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