async

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchAll

func FetchAll(urls []string, c *Client)

FetchAll grabs a list of urls

Types

type Client

type Client struct {
	*http.Client
	Resp chan *http.Response
	Err  chan error
}

Client stores a client and has two channels to aggregate responses and errors

func NewClient

func NewClient(client *http.Client, bufferSize int) *Client

NewClient creates a new client and sets its appropriate channels

func (*Client) AsyncGet

func (c *Client) AsyncGet(url string)

AsyncGet performs a Get then returns the resp/error to the appropriate channel

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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