sqldb

package
v0.0.0-...-c15aa5a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: GPL-3.0, AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package sqldb interfaces the Katzenpost server with a SQL database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLDB

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

SQLDB is a SQL database instance.

func New

func New(glue glue.Glue) (*SQLDB, error)

New constructs a new SQLDB instance.

func (*SQLDB) Close

func (d *SQLDB) Close()

Close closes the SQL database connection(s).

func (*SQLDB) IsSpoolOnly

func (d *SQLDB) IsSpoolOnly() bool

IsSpoolOnly returns true iff the database is configured to only support acting as a user message spool.

func (*SQLDB) Spool

func (d *SQLDB) Spool() spool.Spool

Spool returns a spool.Spool instance backed by the SQL database.

func (*SQLDB) UserDB

func (d *SQLDB) UserDB() (userdb.UserDB, error)

UserDB returns a userdb.UserDB instance backed by the SQL database.

Jump to

Keyboard shortcuts

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