generated from liuzhaomax/go-maxms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constant.go
46 lines (42 loc) · 844 Bytes
/
constant.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
package core
// config dir
const configDir = "environment/config"
// logger
const SUCCESS = "成功"
const FAILURE = "失败"
// vault
const (
KV = "kv"
PWD = "pwd"
RSA = "rsa"
JWT = "jwt"
SECRET = "secret"
SALT = "salt"
PUK = "puk"
PRK = "prk"
ID = "id"
APP = "app"
)
const (
EmptyString = ""
Bearer = "Bearer "
UserID = "userID"
// headers params
Method = "method"
URI = "uri"
ClientIp = "client_ip"
UserAgent = "user-agent"
TraceId = "trace_id"
SpanId = "span_id"
ParentId = "parent_id"
Authorization = "authorization"
AppId = "app_id"
RequestId = "request_id"
UserId = "user_id"
RequestURI = "request_uri"
Signature = "signature"
// redis
Nonce = "nonce"
// jaeger
UberTraceId = "uber-trace-id"
)