-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.go
46 lines (33 loc) · 861 Bytes
/
main.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 main
import (
"strconv"
"goyo.in/gpstracker/const"
"goyo.in/gpstracker/datashare"
"goyo.in/gpstracker/tile"
"goyo.in/gpstracker/models"
"goyo.in/gpstracker/network"
// import "goyo.in/gpstracker/network"
// import "goyo.in/gpstracker/crc16"
restservice "goyo.in/gpstracker/conf"
"goyo.in/gpstracker/job"
)
// import "goyo.in/gpstracker/network"
// import "goyo.in/gpstracker/crc16"
func main() {
// dataprocess.GetData()
startAll()
}
func startAll() {
// jobs for history creation
go job.StartJob()
//go redigogeofence.Start() client for tile18 server
go tile.GRpcRun()
//Start Rest API & Socket.io server
go func() {
restservice.RestfulAPIServiceInit("HTTP")
}()
models.Init()
datashare.Init()
en := network.TCPServer_new{Host: consts.TCPHost, Port: strconv.Itoa(consts.TCPPort), Timeout: 3000}
en.StartServer()
}