options

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBatchSize    = 200
	DefaultBatchTime    = 30 * time.Second
	DefaultRetryCount   = 3
	DefaultRetryBackoff = 300 * time.Millisecond
)

Variables

This section is empty.

Functions

func WithBatchSize

func WithBatchSize(n int) func(*Options)

func WithBatchTime

func WithBatchTime(t time.Duration) func(*Options)

func WithRetryPolicy

func WithRetryPolicy(count int, backoff time.Duration) func(*Options)

func WithTLS

func WithTLS(cfg *tls.Config) func(*Options)

Types

type Options

type Options struct {
	TLSCreds     credentials.TransportCredentials
	BatchSize    int
	BatchTime    time.Duration
	RetryCount   int
	RetryBackoff time.Duration
}

func Defaults

func Defaults() Options

Jump to

Keyboard shortcuts

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