Documentation
¶
Overview ¶
Package review wires the review domain — the interactive "Start review" flow — into an fx module. This file is the only fx-aware part of the domain; the domain, application, and infrastructure layers stay framework-free.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("review", fx.Provide( fx.Annotate(infrastructure.NewCodeReviewsRepo, fx.As(new(domain.Recorder)), fx.As(new(notificationdomain.ReviewSessions)), ), fx.Annotate(infrastructure.NewMessageChecker, fx.As(new(domain.MessageChecker))), fx.Annotate(infrastructure.NewSlackDecorator, fx.As(new(domain.MessageDecorator))), fx.Annotate(provideStartReview, fx.As(new(domain.StartReview))), ), )
Module binds the review ports to their adapters and the start-review use case. The code-reviews repository is bound to BOTH review's own Recorder port and the notification ReviewSessions port (review owns review sessions). It expects the composition root to supply the store's *store.CodeReviews and *store.PullRequests, a *slack.Composer and *slack.Client, and a *slog.Logger.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package application holds the review use cases — recording a reviewer and decorating the PR message on a "Start review" click — behind the domain's use-case interfaces.
|
Package application holds the review use cases — recording a reviewer and decorating the PR message on a "Start review" click — behind the domain's use-case interfaces. |
|
Package domain defines the review domain's ports, DTOs, and errors — the interactive "Start review" flow's contracts.
|
Package domain defines the review domain's ports, DTOs, and errors — the interactive "Start review" flow's contracts. |
|
Package infrastructure holds the review adapters: the code-reviews repository over the store, the Slack message decorator, and the Slack interactions inbound receiver.
|
Package infrastructure holds the review adapters: the code-reviews repository over the store, the Slack message decorator, and the Slack interactions inbound receiver. |
Click to show internal directories.
Click to hide internal directories.