client

package
v0.0.0-...-725b82a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Fetch

func (c *Client) Fetch(url string) (any, error)

type ClientBuilder

type ClientBuilder struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *ClientBuilder

func (*ClientBuilder) Build

func (c *ClientBuilder) Build() *Client

func (*ClientBuilder) SetBaseUrl

func (c *ClientBuilder) SetBaseUrl(baseUrl string) *ClientBuilder

func (*ClientBuilder) SetCookies

func (c *ClientBuilder) SetCookies(cookies map[string]string) *ClientBuilder

func (*ClientBuilder) SetHeaders

func (c *ClientBuilder) SetHeaders(headers map[string]string) *ClientBuilder

func (*ClientBuilder) SetParser

func (c *ClientBuilder) SetParser(parser *jsonparser.JSONParser) *ClientBuilder

func (*ClientBuilder) SetProxy

func (c *ClientBuilder) SetProxy(proxyUrl string) *ClientBuilder

func (*ClientBuilder) SetTimeout

func (c *ClientBuilder) SetTimeout(timeout time.Duration) *ClientBuilder

func (*ClientBuilder) SetUserAgent

func (c *ClientBuilder) SetUserAgent(userAgent string) *ClientBuilder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL