Versions in this module Expand all Collapse all v1 v1.0.1 Apr 25, 2021 v1.0.0 Mar 9, 2021 Changes in this version + func DoBalance(balanceType string, urls []string) (string, error) + type Balance interface + DoBalance func(urls []string) (string, error) + type BalanceManager struct + type Client struct + func NewClient(eurekaClient *eureka.Client) *Client + func (c *Client) Body(body interface{}) *Client + func (c *Client) Get(rawURL string) *Result + func (c *Client) Header(k, v string) *Client + func (c *Client) Params(p map[string]string) *Client + func (c *Client) Post(rawURL string) *Result + func (c *Client) SetResult(result interface{}) *Client + type RandomBalance struct + func (b *RandomBalance) DoBalance(urls []string) (string, error) + type Result struct + Err error + Resp *resty.Response + type RoundRobinBalance struct + func (b *RoundRobinBalance) DoBalance(urls []string) (string, error)