-
Notifications
You must be signed in to change notification settings - Fork 66
/
consts.go
68 lines (50 loc) · 1.77 KB
/
consts.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
package consts
import "time"
const (
App = "deeptest"
ContentType = "Content-Type"
ContentLength = "Content-Length"
Server = "Server"
Allow = "Allow"
Connection = "Connection"
Host = "Host"
Authorization = "Authorization"
UserAgentChrome = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
ApiPathServer = "/api/v1"
ApiPathAgent = "/api/v1"
ApiPathMock = "/mocks"
WsPath = ApiPathAgent + "/ws"
WsDefaultNamespace = "default"
WsDefaultRoom = "default_room"
WsChatEvent = "OnChat"
WebCheckInterval = 60 * 60
SummaryDataCheckInterval = 60 * 60
MaxNum = 10000
AgentConfigFileName = "agent.yaml"
ServerConfigFileName = "server.yaml"
CasbinFileName = "rbac_model.conf" // casbin 规则文件名称
SupportEmail = "chenqi@deeptest.com"
Sys = "DeepTest"
Url = "https://deeptest.com/"
UrlDev = "http://localhost:8000/"
ExtractorErr = "extractor_err"
ContentErr = "content_err"
EmailSmtpAddress = "smtp.exmail.qq.com"
EmailSmtpPort = 465
EmailAccount = "chenqi@deeptest.com"
EmailPassword = ""
HttpRequestTimeout = 60 * time.Second
DeepestKey = "com_deeptest_prop_for_selection"
KEY_BASE_URL = "_base_url_"
MaxLoopTimeForInterfaceTest = 1000
MaxLoopTimeForPerformanceTest = 1000000
KEY_MOCKJS = "x-mock-type"
INVALID_VALUE = "N/A"
TmpDirRelative = "tmp"
TmpDirRelativeServer = TmpDirRelative + "/server"
TmpDirRelativeAgent = TmpDirRelative + "/agent"
)
var (
DirUpload = "upload"
HeaderOptions = []string{"Accept", "Accept-Encoding", "Accept-Language", "Connection", "Host", "Referer", "User-Agent", "Cache-Control", "Cookie", "Range"}
)