longganhua
2019-05-09 66198ce78d2c81ef6e962bccae23ae0ecbf7acd2
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
package main
 
import (
    "fmt"
    "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.124:6060", nil))
    }()
 
    sdk.Init()     //  获取所有算法id ,建立 sdk 主题, 建立sdk server(send, recv 运行)
    tasktag.Init() // 获取所有任务,建立任务标签, 在数据进入时, 打标签
    camera.Init()  //获取cid, taskid, sdkid ,关系
 
    fmt.Println()
    fmt.Println("===================================")
    fmt.Println()
 
    for {
    }
 
}