zhangmeng
2019-12-20 ca1b2ac7edb871df9faf17f8afd9290be63d33df
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
package util
 
// FetchServerInfo 从sqlite的服务器获取同步信息的服务
type FetchServerInfo struct {
    IP       string
    HTTPort  int
    HBPort   int //心跳端口
    DataPort int //数据端口
}
 
var (
    // FSI 同步服务器信息
    FSI = &FetchServerInfo{
        IP:       "127.0.0.1",
        HTTPort:  8001,
        HBPort:   40007,
        DataPort: 50007,
    }
 
    // ToRuleIPC to ruleprocess
    ToRuleIPC = "ipc:///tmp/sdk-2-rules-process.ipc"
 
    // MapParames map params
    MapParames = make(map[string]string)
 
    // LogFile log
    LogFile string
)
 
const (
    FeatAll  = "all"
    FeatFace = "face"
    FeatYolo = "yolo"
 
    FakeSdkID = "FakeSdkID"
)
 
const (
    GPU        = "gpu"
    SHM        = "shm"
    LogIt      = "logit"
    ConfigPath = "config-path"
 
    FetchSrvIP            = "fetch-server-ip"
    FetchSrvPort          = "fetch-server-port"
    FetchSrvHeartbeatPort = "fetch-server-heartbeat-port"
    FetchSrvDataPort      = "fetch-server-data-port"
 
    RuleIPC = "rule-ipc"
)