steid

@jamesgill /

Rust2.0 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 issue;
12pub mod label;
13pub mod membership;
14pub mod net;
15pub mod object;
16pub mod org;
17pub mod password;
18pub mod pull_request;
19pub mod push_event;
20pub mod reference;
21pub mod repo;
22pub mod repository;
23pub mod session;
24pub mod setup_token;
25pub mod token;
26pub mod user;
27pub mod webhook;
28pub mod webhook_delivery;
29
30pub use actor::Actor;
31pub use email::Email;
32pub use error::DomainError;
33pub use id::{
34 IssueCommentId, IssueId, LabelId, MembershipId, OrgId, PullRequestCommentId, PullRequestId,
35 PushEventId, RepoId, TokenId, UserId, WebhookDeliveryId, WebhookId,
36};
37// `MAX_TITLE_LEN` and `MAX_BODY_LEN` stay behind `issue::` rather than being
38// re-exported here: the names are too generic to sit in the domain root, where the next
39// aggregate with a title would have to fight them for it.
40pub use import::{ImportSource, ImportState};
41pub use issue::{Issue, IssueComment, IssueNumber, IssueState};
42pub use label::{Label, LabelColour};
43pub use membership::{Membership, Role};
44pub use net::is_public;
45pub use object::{
46 BranchRow, CommitDetail, CommitEntry, CommitSummary, EntryCommit, EntryKind, GitRef, GrepHit,
47 ObjectId, RefKind, TagRow, TagSummary, TreeEntry,
48};
49pub use org::{OrgName, Organization};
50pub use password::PasswordHash;
51pub use pull_request::{MergeStrategy, PullRequest, PullRequestComment, PullRequestState, closes};
52pub use push_event::{PushEvent, ZERO_OBJECT_ID, is_zero};
53pub use reference::{RefName, RepoPath};
54pub use repo::{RepoName, RepoWrite, Repository, Visibility};
55pub use session::{Session, SessionTokenHash};
56pub use setup_token::SetupToken;
57pub use token::{PersonalAccessToken, TokenHash, TokenLifetime, TokenSecret};
58pub use user::User;
59pub use webhook::{PrivateTargets, Webhook, WebhookSecret, WebhookUrl};
60pub use webhook_delivery::WebhookDelivery;