Documentation
¶
Index ¶
- Constants
- type FastHttpClient
- func (FastHttpClient) CheckRetry(err error, status int) bool
- func (c FastHttpClient) Exec(req *request.Request) (r *gResp.Response, err error)
- func (c FastHttpClient) Proxy(targetUrl string, ctx *fiber.Ctx, timeout time.Duration) error
- func (fhc FastHttpClient) ProxyService(serviceName, path string, ctx *fiber.Ctx, timeout time.Duration) error
- func (c *FastHttpClient) SetClient(client *fasthttp.Client)
Constants ¶
View Source
const ( DefaultTimeout = 10 * time.Second RequestTimeOut = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FastHttpClient ¶
type FastHttpClient struct {
// contains filtered or unexported fields
}
func GetDefaultClient ¶
func GetDefaultClient() FastHttpClient
func (FastHttpClient) CheckRetry ¶
func (FastHttpClient) CheckRetry(err error, status int) bool
func (FastHttpClient) ProxyService ¶ added in v0.6.0
func (*FastHttpClient) SetClient ¶
func (c *FastHttpClient) SetClient(client *fasthttp.Client)
Click to show internal directories.
Click to hide internal directories.