steid

@jamesgill /

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