554325746@qq.com
2019-05-28 70df7b912014201e271a2966599b84d77addd0f9
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
package main
 
import (
    "log"
    "net/http"
    _ "net/http/pprof"
 
    "github.com/long/test/camera"
 
    //    "github.com/long/test/httpclient"
    "github.com/long/test/sdk"
    "github.com/long/test/tasktag"
    "time"
)
 
func main() {
    // pprof 用于分析性能
    go func() {
        log.Println(http.ListenAndServe("192.168.1.123:6060", nil))
    }()
 
    sdk.Init()     //  获取所有算法id ,建立 sdk 主题, 建立sdk server(send, recv 运行)
    tasktag.Init() // 获取所有任务,建立任务标签, 在数据进入时, 打标签
    camera.Init()  //获取cid, taskid, sdkid ,关系
    for {
        time.Sleep(time.Second)
    }
}