- ebai api

This commit is contained in:
gazebo
2018-09-22 23:28:32 +08:00
parent 4da89c226e
commit 3fecfbd7a4
12 changed files with 336 additions and 10 deletions

View File

@@ -6,16 +6,16 @@ import (
"net/http"
"time"
"github.com/fatih/structs"
"git.rosy.net.cn/baseapi"
"github.com/fatih/structs"
)
const (
DefClientTimeout = 10 * time.Second
DefSleepSecondWhenExceedLimit = 6 * time.Second
DefRandSlice = 10
DefMaxRecoverableRetryCount = 3
DefMaxExceedLimitRetryCount = 10
DefMaxExceedLimitRetryCount = 12
)
type APIRetryConfig struct {