| 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 | |
| 6 | pub mod actor; |
| 7 | pub mod email; |
| 8 | pub mod error; |
| 9 | pub mod id; |
| 10 | pub mod membership; |
| 11 | pub mod object; |
| 12 | pub mod org; |
| 13 | pub mod password; |
| 14 | pub mod reference; |
| 15 | pub mod repo; |
| 16 | pub mod repository; |
| 17 | pub mod session; |
| 18 | pub mod setup_token; |
| 19 | pub mod token; |
| 20 | pub mod user; |
| 21 | |
| 22 | pub use actor::Actor; |
| 23 | pub use email::Email; |
| 24 | pub use error::DomainError; |
| 25 | pub use id::{MembershipId, OrgId, RepoId, TokenId, UserId}; |
| 26 | pub use membership::{Membership, Role}; |
| 27 | pub use object::{CommitSummary, EntryKind, GitRef, ObjectId, RefKind, TreeEntry}; |
| 28 | pub use org::{OrgName, Organization}; |
| 29 | pub use password::PasswordHash; |
| 30 | pub use reference::{RefName, RepoPath}; |
| 31 | pub use repo::{RepoName, Repository, Visibility}; |
| 32 | pub use session::{Session, SessionTokenHash}; |
| 33 | pub use setup_token::SetupToken; |
| 34 | pub use token::{PersonalAccessToken, TokenHash, TokenSecret}; |
| 35 | pub use user::User; |