Documentation
¶
Index ¶
- func NewPostgresAssumedOfflineTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationAssumedOffline, error)
- func NewPostgresBlacklistTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationBlacklist, error)
- func NewPostgresInboundPeeksTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationInboundPeeks, error)
- func NewPostgresJoinedHostsTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationJoinedHosts, error)
- func NewPostgresNotaryServerKeysMetadataTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationNotaryServerKeysMetadata, error)
- func NewPostgresNotaryServerKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationNotaryServerKeysJSON, error)
- func NewPostgresOutboundPeeksTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationOutboundPeeks, error)
- func NewPostgresQueueEDUsTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationQueueEDUs, error)
- func NewPostgresQueueJSONTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationQueueJSON, error)
- func NewPostgresQueuePDUsTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationQueuePDUs, error)
- func NewPostgresRelayServersTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationRelayServers, error)
- func NewPostgresServerSigningKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.FederationServerSigningKeys, error)
- type Database
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 ¶
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