Documentation
¶
Overview ¶
Package testlists queries orchestra's test lists.
Index ¶
Constants ¶
View Source
const (
// DefaultBaseURL is the default base URL
DefaultBaseURL = "https://orchestrate.ooni.io"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// BaseURL is the orchestra base URL.
BaseURL string
// HTTPClient is the HTTP client to use.
HTTPClient *http.Client
// Logger is the logger to use.
Logger log.Logger
// UserAgent is the user agent to use.
UserAgent string
// EnabledCategories is a list of category codes that are enabled
EnabledCategories []string
}
Client is a client for the requesting test lists.
func (*Client) SetEnabledCategories ¶
SetEnabledCategories configures the client category codes
type URLInfo ¶
type URLInfo struct {
// URL is the URL
URL string `json:"url"`
// CountryCode is the country code
CountryCode string `json:"country_code"`
// CategoryCode is the category code
CategoryCode string `json:"category_code"`
}
URLInfo contains the URL and the citizenlab category code for that URL
Click to show internal directories.
Click to hide internal directories.