steid

@jamesgill /

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