| | |
| | | import ( |
| | | "encoding/json" |
| | | "fmt" |
| | | "gat1400Exchange/pkg" |
| | | "io/ioutil" |
| | | |
| | | "gat1400Exchange/config" |
| | | "gat1400Exchange/pkg/logger" |
| | | "gat1400Exchange/util" |
| | | "gat1400Exchange/vo" |
| | | |
| | | dac "github.com/xinsnake/go-http-digest-auth-client" |
| | |
| | | |
| | | url := fmt.Sprintf("%s://%s:%s%s", config.ClientConf.Proto, config.ClientConf.ServerAddr, config.ClientConf.ServerPort, KeepaliveUrI) |
| | | b, _ := json.Marshal(body) |
| | | rsp, err := util.HttpPost(url, headers, b) |
| | | rsp, err := pkg.HttpPost(url, headers, b) |
| | | if err != nil { |
| | | logger.Warn("Keepalive request failed, %s", err.Error()) |
| | | return vo.StatusOtherError |