1mod collaboration_message;
7mod error;
8mod message;
9mod protocol;
10
11pub use collaboration_message::{
12 CollaborationMessage, CollaborationMessageType, SerializableComment, SerializableIssue,
13 SerializableLabel, SerializablePullRequest, SerializableReview,
14};
15pub use error::P2PError;
16pub use message::{Message, MessageType, ObjectData, RefUpdate, RepoAnnounce, SyncRequest};
17pub use protocol::{ReplicationHandler, ReplicationProtocol};
18
19pub const REPLICATION_CHANNEL: u64 = 1;
21
22pub const MAX_MESSAGE_SIZE: usize = 10 * 1024 * 1024;
24
25pub type Result<T> = std::result::Result<T, P2PError>;