1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// node
pub const CHAN:      &str = "_chan";

pub const CHANS:     &str = "_chas";
pub const AUTH:      &str = "_auth";
pub const ATTACH:    &str = "_atta";
pub const DETACH:    &str = "_deta";
pub const PING:      &str = "_ping";
pub const QUERY:     &str = "_quer";
pub const MINE:      &str = "_mine";
pub const CUSTOM:    &str = "_cust";

pub const SOCKET_ID: &str = "_soid";
pub const SLOT_ID:   &str = "_slid";
pub const VALUE:     &str = "_valu";
pub const LABEL:     &str = "_labe";
pub const TO:        &str = "_to";
pub const FROM:      &str = "_from";
pub const SHARE:     &str = "_shar";
pub const ACK:       &str = "_ack";
pub const ROOT:      &str = "_root";
pub const ATTR:      &str = "_attr";
pub const ADDR:      &str = "_addr";

// message
pub const ID:        &str = "_id";

// error
pub const OK:    &str = "_ok";
pub const ERROR: &str = "_error";

// slot event
pub const SLOT_READY:  &str = "_slre";
pub const SLOT_BREAK:  &str = "_slbr";
pub const SLOT_ATTACH: &str = "_slat";
pub const SLOT_DETACH: &str = "_slde";
pub const SLOT_KILL:   &str = "_slki";
pub const SLOT_SEND:   &str = "_slse";
pub const SLOT_RECV:   &str = "_slrc";

// attr
pub const SEND_NUM:    &str = "send_num";
pub const RECV_NUM:    &str = "recv_num";

// crypto
pub const AES_128_GCM:       &str = "AES_128_GCM";
pub const AES_256_GCM:       &str = "AES_256_GCM";
pub const CHACHA20_POLY1305: &str = "CHACHA20_POLY1305";

// network
pub const HAND:      &str = "_hand";
pub const METHOD:    &str = "_meth";
pub const SECURE:    &str = "_secu";
pub const ORIGIN:    &str = "_orig";