repo

package
v0.0.0-...-66cac0b Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Texts

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

func NewTexts

func NewTexts(conn *pgxpool.Conn) Texts

func (Texts) Exists

func (t Texts) Exists(key string) (bool, error)

func (Texts) Insert

func (t Texts) Insert(key, value string, userId db.Id) (db.Id, error)

func (Texts) Update

func (t Texts) Update(key, value string, userId db.Id) (int64, error)

func (Texts) Value

func (t Texts) Value(key string) (string, error)

type Users

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

func NewUsers

func NewUsers(conn *pgxpool.Conn) Users

func (Users) Flags

func (u Users) Flags(userId db.Id) (data.UserFlags, error)

func (Users) Id

func (u Users) Id(username string) (db.Id, error)

func (Users) Insert

func (u Users) Insert(username string, password []byte, flags data.UserFlags) (db.Id, error)

func (Users) Password

func (u Users) Password(username string) ([]byte, error)

Jump to

Keyboard shortcuts

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