Help us shape the future of Go! Take the 2026 Go Developer Survey

call

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 84

Documentation

Overview

Package call defines the options used to configure individual calls against the Databricks API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*internaloptions.CallOptions) error

Option configures a single call against the Databricks API. If multiple options configure the same setting, the last option takes precedence.

func WithDisableRetry

func WithDisableRetry() Option

WithDisableRetry is a convenience option that disables retries.

func WithLimiter

func WithLimiter(l ops.Limiter) Option

WithLimiter returns an Option that uses the given Limiter. If no limiter is provided, the call is not rate limited.

func WithRetrier

func WithRetrier(provider func() ops.Retrier) Option

WithRetrier returns an Option that uses the given Retrier provider. If no retrier is provided, the call is not retried.

The provider function must be thread-safe.

func WithTimeout

func WithTimeout(t time.Duration) Option

WithTimeout returns an Option that limits how long a call can take, including retry delays and rate-limiter waits. The timeout applies until the method returns.

It overrides the client's default timeout for this invocation. An earlier deadline on the caller's context takes precedence. A zero duration disables the SDK timeout.

Jump to

Keyboard shortcuts

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