postgres

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresRelayQueueJSONTable

func NewPostgresRelayQueueJSONTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.RelayQueueJSON, error)

NewPostgresRelayQueueJSONTable creates a new relay queue JSON table

func NewPostgresRelayQueueTable

func NewPostgresRelayQueueTable(
	ctx context.Context, cm sqlutil.ConnectionManager,
) (tables.RelayQueue, error)

NewPostgresRelayQueueTable creates a new relay queue table

Types

type Database

type Database struct {
	shared.Database
}

Database stores information needed by the relayapi

func NewDatabase

func NewDatabase(
	ctx context.Context,
	cm sqlutil.ConnectionManager,
	cache cacheutil.FederationCache,
	isLocalServerName func(spec.ServerName) bool,
) (*Database, error)

NewDatabase opens a new database

Jump to

Keyboard shortcuts

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