mlablocate

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package mlablocate contains a locate.measurementlab.net client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *http.Client
	Hostname   string
	Logger     model.Logger
	Scheme     string
	UserAgent  string
}

Client is a locate.measurementlab.net client.

func NewClient

func NewClient(httpClient *http.Client, logger model.Logger, userAgent string) *Client

NewClient creates a new locate.measurementlab.net client.

func (*Client) Query

func (c *Client) Query(ctx context.Context, tool string) (string, error)

Query performs a locate.measurementlab.net query.

Jump to

Keyboard shortcuts

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