database

package
v0.0.0-...-95c6f9f Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewDatabase

func NewDatabase(connStr string) (*Database, error)

func (*Database) Close

func (d *Database) Close()

func (*Database) FindSessionById

func (d *Database) FindSessionById(id int) (*auth.Session, error)

func (*Database) FindUserByUsername

func (d *Database) FindUserByUsername(username string) (*auth.User, error)

func (*Database) PersistSession

func (d *Database) PersistSession(session *auth.Session) error

func (*Database) PersistUser

func (d *Database) PersistUser(user *auth.User) error

Jump to

Keyboard shortcuts

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