steid

@jamesgill /

Rust2.2 KBCode·Blame·History·Raw
1//! The domain layer: entities, value objects, and the errors they raise.
2//!
3//! Knows nothing about HTTP, SQL, git, or Topcoat. Nothing in here may import from
4//! `application` or `infrastructure`.
5
6pub mod actor;
7pub mod email;
8pub mod error;
9pub mod id;
10pub mod import;
11pub mod instance_settings;
12pub mod issue;
13pub mod label;
14pub mod membership;
15pub mod net;
16pub mod object;
17pub mod org;
18pub mod password;
19pub mod password_reset;
20pub mod pull_request;
21pub mod push_event;
22pub mod reference;
23pub mod repo;
24pub mod repository;
25pub mod session;
26pub mod setup_token;
27pub mod token;
28pub mod user;
29pub mod webhook;
30pub mod webhook_delivery;
31
32pub use actor::Actor;
33pub use email::Email;
34pub use error::DomainError;
35pub use id::{
36 IssueCommentId, IssueId, LabelId, MembershipId, OrgId, PullRequestCommentId, PullRequestId,
37 PushEventId, RepoId, ResetId, TokenId, UserId, WebhookDeliveryId, WebhookId,
38};
39// `MAX_TITLE_LEN` and `MAX_BODY_LEN` stay behind `issue::` rather than being
40// re-exported here: the names are too generic to sit in the domain root, where the next
41// aggregate with a title would have to fight them for it.
42pub use import::{ImportSource, ImportState};
43pub use instance_settings::InstanceSettings;
44pub use issue::{Issue, IssueComment, IssueNumber, IssueState};
45pub use label::{Label, LabelColour};
46pub use membership::{Membership, Role};
47pub use net::is_public;
48pub use object::{
49 BranchRow, CommitDetail, CommitEntry, CommitSummary, EntryCommit, EntryKind, GitRef, GrepHit,
50 ObjectId, RefKind, TagRow, TagSummary, TreeEntry,
51};
52pub use org::{OrgName, Organization};
53pub use password::{Password, PasswordHash};
54pub use password_reset::{PasswordReset, ResetHash, ResetSecret};
55pub use pull_request::{MergeStrategy, PullRequest, PullRequestComment, PullRequestState, closes};
56pub use push_event::{PushEvent, ZERO_OBJECT_ID, is_zero};
57pub use reference::{RefName, RepoPath};
58pub use repo::{RepoName, RepoWrite, Repository, Visibility};
59pub use session::{Session, SessionTokenHash};
60pub use setup_token::SetupToken;
61pub use token::{PersonalAccessToken, TokenHash, TokenLifetime, TokenSecret};
62pub use user::User;
63pub use webhook::{PrivateTargets, Webhook, WebhookSecret, WebhookUrl};
64pub use webhook_delivery::WebhookDelivery;