Skip to content

Commit

Permalink
temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrwhyg committed Sep 2, 2024
1 parent 85eb48d commit 818e915
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod resp;

pub use resp::*;
22 changes: 22 additions & 0 deletions src/resp/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
use std::collections::{HashMap, HashSet};

pub enum RespFrame {
SimpleString(SimpleString),
Error(SimpleError),
Integer(i64),
BulkString(Vec<u8>),
Array(Vec<RespFrame>),
Null(RespNull),
NullArray(RespNullArray),
Boolean(bool),
Double(f64),
Map(HashMap<String, RespFrame>),
Set(HashSet<RespFrame>),
}

#[allow(dead_code)]
pub struct SimpleString(String);
#[allow(dead_code)]
pub struct SimpleError(String);
pub struct RespNull;
pub struct RespNullArray;

0 comments on commit 818e915

Please # to comment.