-
Notifications
You must be signed in to change notification settings - Fork 3
/
cbor_v1.go
122 lines (120 loc) · 4.29 KB
/
cbor_v1.go
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// Copyright 2021 The Matrix.org Foundation C.I.C.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package lb
var cborv1Keys = map[string]int{
"event_id": 1,
"type": 2,
"content": 3,
"state_key": 4,
"room_id": 5,
"sender": 6,
"user_id": 7,
"origin_server_ts": 8,
"unsigned": 9,
"prev_content": 10,
"state": 11,
"timeline": 12,
"events": 13,
"limited": 14,
"prev_batch": 15,
"transaction_id": 16,
"age": 17,
"redacted_because": 18,
"next_batch": 19,
"presence": 20,
"avatar_url": 21,
"account_data": 22,
"rooms": 23,
"join": 24,
"membership": 25,
"displayname": 26,
"body": 27,
"msgtype": 28,
"format": 29,
"formatted_body": 30,
"ephemeral": 31,
"invite_state": 32,
"leave": 33,
"third_party_invite": 34,
"is_direct": 35,
"hashes": 36,
"signatures": 37,
"depth": 38,
"prev_events": 39,
"prev_state": 40,
"auth_events": 41,
"origin": 42,
"creator": 43,
"join_rule": 44,
"history_visibility": 45,
"ban": 46,
"events_default": 47,
"kick": 48,
"redact": 49,
"state_default": 50,
"users": 51,
"users_default": 52,
"reason": 53,
"visibility": 54,
"room_alias_name": 55,
"name": 56,
"topic": 57,
"invite": 58,
"invite_3pid": 59,
"room_version": 60,
"creation_content": 61,
"initial_state": 62,
"preset": 63,
"servers": 64,
"identifier": 65,
"user": 66,
"medium": 67,
"address": 68,
"password": 69,
"token": 70,
"device_id": 71,
"initial_device_display_name": 72,
"access_token": 73,
"home_server": 74,
"well_known": 75,
"base_url": 76,
"device_lists": 77,
"to_device": 78,
"peek": 79,
"last_seen_ip": 80,
"display_name": 81,
"typing": 82,
"last_seen_ts": 83,
"algorithm": 84,
"sender_key": 85,
"session_id": 86,
"ciphertext": 87,
"one_time_keys": 88,
"timeout": 89,
"recent_rooms": 90,
"chunk": 91,
"m.fully_read": 92,
"device_keys": 93,
"failures": 94,
"device_display_name": 95,
"prev_sender": 96,
"replaces_state": 97,
"changed": 98,
"unstable_features": 99,
"versions": 100,
"devices": 101,
"errcode": 102,
"error": 103,
"room_alias": 104,
}