mod collaboration_message;
mod error;
mod message;
mod protocol;
pub use collaboration_message::{
CollaborationMessage, CollaborationMessageType, SerializableComment, SerializableIssue,
SerializableLabel, SerializablePullRequest, SerializableReview,
};
pub use error::P2PError;
pub use message::{Message, MessageType, ObjectData, RefUpdate, RepoAnnounce, SyncRequest};
pub use protocol::{ReplicationHandler, ReplicationProtocol};
pub const REPLICATION_CHANNEL: u64 = 1;
pub const MAX_MESSAGE_SIZE: usize = 10 * 1024 * 1024;
pub type Result<T> = std::result::Result<T, P2PError>;