#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Packet {
    pub version: u8,
    pub command: u8,
    pub sequence: u16,
    pub opcode: u16,
    pub payload: Vec<u8>,
}

pub const PROTOCOL_VERSION: u8 = 10;

pub mod command {
    pub const REQUEST: u8 = 0;
    pub const PUSH: u8 = 0;
    pub const OK: u8 = 1;
    pub const NOT_FOUND: u8 = 2;
    pub const ERROR: u8 = 3;
}
