factory

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package factory provides repository factory implementation for centralized storage dependency management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepositoryFactory

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

RepositoryFactory manages all repository instances and their dependencies and implements the RepositoryStorage interface

func NewRepositoryFactory

func NewRepositoryFactory(db dynamormCore.DB, tableName string, logger *zap.Logger) (*RepositoryFactory, error)

NewRepositoryFactory creates a new repository factory with all repositories initialized

func (*RepositoryFactory) AI

AI returns the AI repository instance

func (*RepositoryFactory) Account

Account returns the Account repository instance

func (*RepositoryFactory) Activity

Activity returns the Activity repository instance (interface type for mockability).

func (*RepositoryFactory) Actor

Actor returns the Actor repository instance

func (*RepositoryFactory) Analytics

Analytics returns the Analytics repository instance

func (*RepositoryFactory) Announcement

Announcement returns the Announcement repository instance

func (*RepositoryFactory) Article

Article returns the Article repository instance

func (*RepositoryFactory) AsStorage

func (f *RepositoryFactory) AsStorage() interfaces.Storage

AsStorage returns this factory as a Storage interface This enables the factory to be used anywhere Storage is expected

func (*RepositoryFactory) Audit

Audit returns the Audit repository instance

func (*RepositoryFactory) Bookmark

Bookmark returns the Bookmark repository instance

func (*RepositoryFactory) Category

Category returns the Category repository instance

func (*RepositoryFactory) CloudWatchMetrics

CloudWatchMetrics returns the CloudWatchMetrics repository instance

func (*RepositoryFactory) CommunityNote

CommunityNote returns the CommunityNote repository instance

func (*RepositoryFactory) Conversation

Conversation returns the Conversation repository instance

func (*RepositoryFactory) Cost

Cost returns the Cost repository instance

func (*RepositoryFactory) DLQ

DLQ returns the DLQ repository instance

func (*RepositoryFactory) DNSCache

DNSCache returns the DNSCache repository instance

func (*RepositoryFactory) DomainBlock

DomainBlock returns the DomainBlock repository instance

func (*RepositoryFactory) Draft

Draft returns the Draft repository instance

func (*RepositoryFactory) Emoji

Emoji returns the Emoji repository instance

func (*RepositoryFactory) Export

Export returns the Export repository instance

func (*RepositoryFactory) FeaturedTag

FeaturedTag returns the FeaturedTag repository instance

func (*RepositoryFactory) Federation

Federation returns the Federation repository instance

func (*RepositoryFactory) Filter

Filter returns the Filter repository instance

func (*RepositoryFactory) GetDB

func (f *RepositoryFactory) GetDB() dynamormCore.DB

GetDB returns the underlying DynamORM database connection

func (*RepositoryFactory) GetLogger

func (f *RepositoryFactory) GetLogger() *zap.Logger

GetLogger returns the logger instance

func (*RepositoryFactory) GetStorageAdapter

func (f *RepositoryFactory) GetStorageAdapter() interfaces.Storage

GetStorageAdapter returns the unified storage interface This provides access to both repository methods AND legacy storage operations

func (*RepositoryFactory) GetTableName

func (f *RepositoryFactory) GetTableName() string

GetTableName returns the DynamoDB table name

func (*RepositoryFactory) Hashtag

Hashtag returns the Hashtag repository instance

func (*RepositoryFactory) Import

Import returns the Import repository instance

func (*RepositoryFactory) Instance

Instance returns the Instance repository instance

func (*RepositoryFactory) Like

Like returns the Like repository instance

func (*RepositoryFactory) List

List returns the List repository instance

func (*RepositoryFactory) Marker

Marker returns the Marker repository instance

func (*RepositoryFactory) Media

Media returns the Media repository instance

func (*RepositoryFactory) MediaAnalytics

MediaAnalytics returns the MediaAnalytics repository instance

func (*RepositoryFactory) MediaMetadata

MediaMetadata returns the MediaMetadata repository instance

func (*RepositoryFactory) MediaPopularity

MediaPopularity returns the MediaPopularity repository instance

func (*RepositoryFactory) MediaSession

MediaSession returns the MediaSession repository instance

func (*RepositoryFactory) MetricRecord

MetricRecord returns the MetricRecord repository instance

func (*RepositoryFactory) Moderation

Moderation returns the Moderation repository instance

func (*RepositoryFactory) ModerationML

ModerationML returns the ModerationML repository instance

func (*RepositoryFactory) Notification

Notification returns the Notification repository instance (interface type for mockability).

func (*RepositoryFactory) OAuth

OAuth returns the OAuth repository instance

func (*RepositoryFactory) Object

Object returns the Object repository instance

func (*RepositoryFactory) Poll

Poll returns the Poll repository instance

func (*RepositoryFactory) PublicKeyCache

PublicKeyCache returns the PublicKeyCache repository instance

func (*RepositoryFactory) Publication

Publication returns the Publication repository instance

func (*RepositoryFactory) PublicationMember

PublicationMember returns the PublicationMember repository instance

func (*RepositoryFactory) PushSubscription

PushSubscription returns the PushSubscription repository instance

func (*RepositoryFactory) Quote

Quote returns the Quote repository instance

func (*RepositoryFactory) RateLimit

RateLimit returns the RateLimit repository instance

func (*RepositoryFactory) Recovery

Recovery returns the Recovery repository instance

func (*RepositoryFactory) Relationship

Relationship returns the Relationship repository instance

func (*RepositoryFactory) Relay

Relay returns the Relay repository instance

func (*RepositoryFactory) ResetStorageAdapter

func (f *RepositoryFactory) ResetStorageAdapter()

ResetStorageAdapter recreates the storage adapter Useful for testing and when repository dependencies change

func (*RepositoryFactory) Revision

Revision returns the Revision repository instance

func (*RepositoryFactory) ScheduledStatus

ScheduledStatus returns the ScheduledStatus repository instance

func (*RepositoryFactory) Search

Search returns the Search repository instance

func (*RepositoryFactory) Series

Series returns the Series repository instance

func (*RepositoryFactory) Severance

Severance returns the Severance repository instance

func (*RepositoryFactory) Social

Social returns the Social repository instance

func (*RepositoryFactory) Status

Status returns the Status repository instance

func (*RepositoryFactory) StreamingCloudWatch

StreamingCloudWatch returns the StreamingCloudWatch repository instance

func (*RepositoryFactory) StreamingConnection

StreamingConnection returns the StreamingConnection repository instance

func (*RepositoryFactory) Thread

Thread returns the Thread repository instance

func (*RepositoryFactory) Timeline

Timeline returns the Timeline repository instance (interface type for mockability).

func (*RepositoryFactory) Trust

Trust returns the Trust repository instance (interface type for mockability).

func (*RepositoryFactory) User

User returns the User repository instance

func (*RepositoryFactory) WebSocketCost

WebSocketCost returns the WebSocketCost repository instance

Jump to

Keyboard shortcuts

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