2021-03-19 09:30:42 +01:00
|
|
|
package ooapi
|
|
|
|
|
|
|
|
// Client is a client for speaking with the OONI API. Make sure you
|
|
|
|
// fill in the mandatory fields.
|
|
|
|
type Client struct {
|
2021-06-04 11:39:00 +02:00
|
|
|
// KVStore is the MANDATORY key-value store. You can use
|
|
|
|
// the kvstore.Memory{} struct for an in-memory store.
|
|
|
|
KVStore KVStore
|
|
|
|
|
|
|
|
// The following fields are optional. When they are empty
|
|
|
|
// we will fallback to sensible defaults.
|
|
|
|
BaseURL string
|
|
|
|
GobCodec GobCodec
|
|
|
|
HTTPClient HTTPClient
|
|
|
|
JSONCodec JSONCodec
|
|
|
|
RequestMaker RequestMaker
|
|
|
|
UserAgent string
|
2021-03-19 09:30:42 +01:00
|
|
|
}
|