Documentation ¶
Index ¶
- func Find(vendorType interfaces.VendorType) interfaces.Vendor
- func NetCat(ctx context.Context, p interfaces.Vendor, addr string, data []byte, ...) ([]byte, error)
- func NetCatWithRetry(p interfaces.Vendor, retry int, timeoutMillisecond int64, addr string, ...) ([]byte, error)
- func Request(ctx context.Context, p interfaces.Vendor, reqOpt *interfaces.RequestOptions) (duration uint16, bodyBytes []byte, resp *http.Response, redirects []string)
- func RequestUnsafe(ctx context.Context, p interfaces.Vendor, reqOpt *interfaces.RequestOptions) (*http.Response, []string, error)
- func RequestWithRetry(p interfaces.Vendor, retry int, timeoutMillisecond int64, ...) ([]byte, *http.Response, []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
func Find(vendorType interfaces.VendorType) interfaces.Vendor
func NetCat ¶
func NetCat(ctx context.Context, p interfaces.Vendor, addr string, data []byte, network interfaces.RequestOptionsNetwork) ([]byte, error)
func NetCatWithRetry ¶
func NetCatWithRetry(p interfaces.Vendor, retry int, timeoutMillisecond int64, addr string, data []byte, network interfaces.RequestOptionsNetwork) ([]byte, error)
func Request ¶
func Request(ctx context.Context, p interfaces.Vendor, reqOpt *interfaces.RequestOptions) (duration uint16, bodyBytes []byte, resp *http.Response, redirects []string)
func RequestUnsafe ¶
func RequestUnsafe(ctx context.Context, p interfaces.Vendor, reqOpt *interfaces.RequestOptions) (*http.Response, []string, error)
func RequestWithRetry ¶
func RequestWithRetry(p interfaces.Vendor, retry int, timeoutMillisecond int64, reqOpt *interfaces.RequestOptions) ([]byte, *http.Response, []string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.