Documentation
¶
Overview ¶
Package feed wires the feed domain — agent subscriptions and the open pull request list — into an fx module. This file is the only fx-aware part of the domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("feed", fx.Provide( fx.Annotate(infrastructure.NewSubscriptionRepo, fx.As(new(domain.SubscriptionStore))), fx.Annotate(infrastructure.NewPullRequestRepo, fx.As(new(domain.PullRequestStore))), fx.Annotate(infrastructure.NewDeliveryRepo, fx.As(new(domain.DeliveryStore))), fx.Annotate(infrastructure.NewFetchRepo, fx.As(new(domain.FetchStore))), fx.Annotate(infrastructure.NewRoutingPartySettings, fx.As(new(domain.PartySettingsResolver))), fx.Annotate(infrastructure.NewRoutingCatalog, fx.As(new(domain.RepositoryCatalog))), fx.Annotate(infrastructure.NewSystemClock, fx.As(new(domain.Clock))), fx.Annotate(provideSubscriptions, fx.As(new(domain.Subscriptions))), fx.Annotate(providePullRequests, fx.As(new(domain.PullRequests))), fx.Annotate(provideRecorder, fx.As(new(domain.Recorder))), fx.Annotate(application.NewPullRequestCleaner, fx.As(new(domain.PullRequestCleaner))), fx.Annotate(application.NewSubscriptionCleaner, fx.As(new(domain.SubscriptionCleaner))), fx.Annotate(application.NewTurnPolicy, fx.As(new(domain.TurnPolicy))), ), )
Module binds the feed ports to their adapters and the use cases. It expects the composition root to supply *persistence.FeedSubscriptions, *persistence.FeedPullRequests, *persistence.FeedDeliveries, *persistence.FeedFetches, routingdomain.EntryLister, routingdomain.PartyRules, routingdomain.ChangedFilesReader (nil when no read token is set) and a *slog.Logger.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package application holds the feed use cases.
|
Package application holds the feed use cases. |
|
Package domain holds the feed contracts: pull-request and subscription models, ports and use-case interfaces.
|
Package domain holds the feed contracts: pull-request and subscription models, ports and use-case interfaces. |
|
Package infrastructure holds the feed adapters.
|
Package infrastructure holds the feed adapters. |
Click to show internal directories.
Click to hide internal directories.