1pub struct Protocol;
2
3impl Protocol {
4 pub(crate) const CMD: &'static str = "cmd";
6 const STATUS: &'static str = "status";
8 pub(crate) const ID: &'static str = "id";
10 const BODY: &'static str = "body";
12 const API_KEY: &'static str = "apiKey";
14 const SIGNATURE: &'static str = "signature"; const PUB: &'static str = "pub";
19 pub(crate) const SUB: &'static str = "sub";
21 const TAKE: &'static str = "take";
23 pub(crate) const ROUTE: &'static str = "route";
25 pub(crate) const CREATE: &'static str = "create";
27 const REMOVE: &'static str = "remove";
29 const QUERY: &'static str = "query";
31 const PING: &'static str = "ping"; pub(crate) const MQ: &'static str = "mq";
35 pub(crate) const CHANNEL: &'static str = "channel";
36 const FILTER: &'static str = "filter";
37 const TAG: &'static str = "tag";
39 const OFFSET: &'static str = "offset";
41 const CHECKSUM: &'static str = "checksum";
42 pub(crate) const SOURCE: &'static str = "source";
44 pub(crate) const TARGET: &'static str = "target";
46 pub(crate) const MQ_TYPE: &'static str = "mqType";
48 pub(crate) const MQ_MASK: &'static str = "mqMask";
49 const CHANNEL_MASK: &'static str = "channelMask";
50 const WINDOW: &'static str = "window";
51 const ACK: &'static str = "ack";
52 pub(crate) const MEMORY: &'static str = "memory";
53
54 pub(crate) const MASK_DELETE_ON_EXIT: i32 = 1 << 0;
55 const MASK_EXCLUSIVE: i32 = 1 << 1;
56 const MASK_TAKEOVER: i32 = 1 << 2; }