Documentation ¶
Index ¶
- Variables
- func GetProxy(ctx context.Context) func(*http.Request) (*url.URL, error)
- func GetProxyTransport(ctx context.Context) *http.Transport
- func HttpDownloadFile(ctx context.Context, fileURL string, useProxy ...bool) []byte
- func HttpGet(ctx context.Context, url string, header map[string]string, data g.Map, ...) error
- func HttpPost(ctx context.Context, url string, header map[string]string, ...) error
- type Roundrobin
Constants ¶
This section is empty.
Variables ¶
View Source
var ProxyOpen bool
View Source
var ProxyURL string
Functions ¶
func HttpDownloadFile ¶
Types ¶
type Roundrobin ¶
type Roundrobin struct {
CurIndex int
}
func (*Roundrobin) Roundrobin ¶
func (roundrobin *Roundrobin) Roundrobin(values []string) (value string)
轮询模式
Click to show internal directories.
Click to hide internal directories.