Documentation
¶
Overview ¶
Package cloud_tasks_config holds the settings of a Cloud Tasks client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// BaseUrl is the endpoint the requests are sent to. A nil one is the public API.
BaseUrl *url.URL
// FetchOptions are passed to every request the client makes, which is where a caller puts its
// own HTTP client, timeout or credentials.
FetchOptions []fetch_config.Option
}
type Option ¶
type Option func(*Config)
func WithBaseUrl ¶
func WithFetchOptions ¶
func WithFetchOptions(fetchOptions ...fetch_config.Option) Option
WithFetchOptions adds to what an earlier call set rather than replacing it.
Click to show internal directories.
Click to hide internal directories.