server: github.com/katzenpost/server/internal/sqldb Index | Files

package sqldb

import "github.com/katzenpost/server/internal/sqldb"

Package sqldb interfaces the Katzenpost server with a SQL database.

Index

Package Files

pgx.go sqldb.go

type SQLDB Uses

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

SQLDB is a SQL database instance.

func New Uses

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

New constructs a new SQLDB instance.

func (*SQLDB) Close Uses

func (d *SQLDB) Close()

Close closes the SQL database connection(s).

func (*SQLDB) IsSpoolOnly Uses

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 Uses

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

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

func (*SQLDB) UserDB Uses

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

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

Package sqldb imports 13 packages (graph) and is imported by 1 packages. Updated 2019-08-24. Refresh now. Tools for package owners.