steid

@jamesgill /

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