postgres

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresAssumedOfflineTable

func NewPostgresAssumedOfflineTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationAssumedOffline, error)

NewPostgresAssumedOfflineTable creates a new postgres assumed offline table

func NewPostgresBlacklistTable

func NewPostgresBlacklistTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationBlacklist, error)

NewPostgresBlacklistTable creates a new postgres blacklist table

func NewPostgresInboundPeeksTable

func NewPostgresInboundPeeksTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationInboundPeeks, error)

NewPostgresInboundPeeksTable creates a new postgres inbound peeks table

func NewPostgresJoinedHostsTable

func NewPostgresJoinedHostsTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationJoinedHosts, error)

NewPostgresJoinedHostsTable creates a new postgres joined hosts table

func NewPostgresNotaryServerKeysMetadataTable

func NewPostgresNotaryServerKeysMetadataTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationNotaryServerKeysMetadata, error)

NewPostgresNotaryServerKeysMetadataTable creates a new postgres notary server keys metadata table

func NewPostgresNotaryServerKeysTable

func NewPostgresNotaryServerKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationNotaryServerKeysJSON, error)

NewPostgresNotaryServerKeysTable creates a new postgres notary server keys table

func NewPostgresOutboundPeeksTable

func NewPostgresOutboundPeeksTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationOutboundPeeks, error)

NewPostgresOutboundPeeksTable creates a new postgres outbound peeks table

func NewPostgresQueueEDUsTable

func NewPostgresQueueEDUsTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationQueueEDUs, error)

NewPostgresQueueEDUsTable creates a new postgres queue EDUs table

func NewPostgresQueueJSONTable

func NewPostgresQueueJSONTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationQueueJSON, error)

NewPostgresQueueJSONTable creates a new postgres queue JSON table

func NewPostgresQueuePDUsTable

func NewPostgresQueuePDUsTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationQueuePDUs, error)

NewPostgresQueuePDUsTable creates a new postgres queue PDUs table

func NewPostgresRelayServersTable

func NewPostgresRelayServersTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationRelayServers, error)

NewPostgresRelayServersTable creates a new postgres relay servers table

func NewPostgresServerSigningKeysTable

func NewPostgresServerSigningKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationServerSigningKeys, error)

NewPostgresServerSigningKeysTable creates a new postgres server signing keys table

Types

type Database

type Database struct {
	shared.Database
}

Database stores information needed by the federation sender

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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