httpserver.go
802 Bytes
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
package logic
import (
"HttpServer/conf"
//"log"
"net/http"
)
//定时处理倒计时
func StartHttpTicker() {
}
func StartHttpServe() {
startServerHttpServe()
}
//just for test
func Testsendhttp() {
}
func CheckErr(err error) {
if err != nil {
panic(err)
}
}
func startServerHttpServe() {
//-------------------------------------------------------------
//http.HandleFunc("/catcafe/ClearData", ClearData) //情况账号的测试接口
//http.HandleFunc("/catcafe/AddWhiteList", AddWhiteList) //情况账号的测试接口
//http.HandleFunc("/catcafe/QueryAllAccount", QueryAllAccount) //查询所有账号的等级信息等数据
//-------------------------------------------------------------
err := http.ListenAndServe(conf.GetServerHttpAddrConf(), nil)
CheckErr(err)
}