forked from oxen-io/session-push-notification-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.py
42 lines (37 loc) · 1.02 KB
/
const.py
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
GET = 'GET'
POST = 'POST'
TOKEN = 'token'
PUBKEY = 'pubKey'
CLOSED_GROUP = 'closedGroupPublicKey'
MEMBERS = 'members'
SEND_TO = 'send_to'
DATA = 'data'
CODE = 'code'
MSG = 'message'
STATUS = 'status'
BODY = 'body'
RESULT = 'result'
CIPHERTEXT = 'ciphertext'
EPHEMERAL = 'ephemeral_key'
PARA_MISSING = 'Missing parameter'
SUCCESS = 'Success'
FAIL = 'Fail'
START_DATE = 'start_date'
END_DATE = 'end_date'
IOS_PN_NUMBER = 'ios_pn_number'
ANDROID_PN_NUMBER = 'android_pn_number'
TOTAL_MESSAGE_NUMBER = 'total_message_number'
CLOSED_GROUP_MESSAGE_NUMBER = 'closed_group_message_number'
NONCE_LENGTH = 12
TAG_LENGTH = 16
DATABASE = 'session_pn_server_db.json'
PUBKEY_TOKEN_TABLE = 'token_pubkey_table'
CLOSED_GROUP_TABLE = 'closed_group_table'
STATISTICS_TABLE = 'statistics_table'
PUBKEY_TOKEN_DB_V2 = 'token_pubkey_db_v2'
CLOSED_GROUP_DB = 'closed_group_db'
CERT_FILE = 'cert.pem'
PRIVKEY_FILE = 'x25519-priv.pem'
FIREBASE_TOKEN = 'loki-5a81e-firebase-adminsdk-7plup-0698317995.json'
BUNDLE_ID = 'com.loki-project.loki-messenger'
debug_mode = True