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
NewRequest NewRequestFunc
Scheme string
UserAgent string
}
Client is a locate.measurementlab.net client.
type NewRequestFunc ¶
NewRequestFunc is the function to create a new request.
func NewRequestDefault ¶
func NewRequestDefault() NewRequestFunc
NewRequestDefault return the default implementation of the c.NewRequest for creating a new HTTP request for locate.measurementlab.net.
func NewRequestWithProxy ¶
func NewRequestWithProxy(probeIP string) NewRequestFunc
NewRequestWithProxy returns a new request factory that tells to the locate.measurementlab.net service that we're using a proxy such that the returned host is good for us, not for the proxy.
Click to show internal directories.
Click to hide internal directories.