call

package
v0.0.0-dev Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

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 sets the timeout for the call. If the context already has a deadline, it is updated to the minimum of the context's deadline and the timeout. A timeout of zero means no timeout.

The timeout covers the entire execution, including retries.

Jump to

Keyboard shortcuts

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