cloud_tasks_config

package
v1.76.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 2 Imported by: 0

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
}

func New

func New(options ...Option) *Config

New builds a config from the options. A nil option is skipped, so a caller can pass one conditionally without guarding the call.

type Option

type Option func(*Config)

func WithBaseUrl

func WithBaseUrl(baseUrl *url.URL) Option

func WithFetchOptions

func WithFetchOptions(fetchOptions ...fetch_config.Option) Option

WithFetchOptions adds to what an earlier call set rather than replacing it.

Jump to

Keyboard shortcuts

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