options

package
v1.23.0-rc3 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by github.com/ecordell/optgen. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExperimentalServerOptions

type ExperimentalServerOptions struct {
	StreamReadTimeout      time.Duration `debugmap:"visible" default:"600s"`
	DefaultExportBatchSize uint32        `debugmap:"visible" default:"1_000"`
	MaxExportBatchSize     uint32        `debugmap:"visible" default:"100_000"`
}

func ExperimentalServerOptionsWithOptions

func ExperimentalServerOptionsWithOptions(e *ExperimentalServerOptions, opts ...ExperimentalServerOptionsOption) *ExperimentalServerOptions

ExperimentalServerOptionsWithOptions configures an existing ExperimentalServerOptions with the passed in options set

func NewExperimentalServerOptionsWithOptions

func NewExperimentalServerOptionsWithOptions(opts ...ExperimentalServerOptionsOption) *ExperimentalServerOptions

NewExperimentalServerOptionsWithOptions creates a new ExperimentalServerOptions with the passed in options set

func NewExperimentalServerOptionsWithOptionsAndDefaults

func NewExperimentalServerOptionsWithOptionsAndDefaults(opts ...ExperimentalServerOptionsOption) *ExperimentalServerOptions

NewExperimentalServerOptionsWithOptionsAndDefaults creates a new ExperimentalServerOptions with the passed in options set starting from the defaults

func (ExperimentalServerOptions) DebugMap

func (e ExperimentalServerOptions) DebugMap() map[string]any

DebugMap returns a map form of ExperimentalServerOptions for debugging

func (*ExperimentalServerOptions) ToOption

ToOption returns a new ExperimentalServerOptionsOption that sets the values from the passed in ExperimentalServerOptions

func (*ExperimentalServerOptions) WithOptions

WithOptions configures the receiver ExperimentalServerOptions with the passed in options set

type ExperimentalServerOptionsOption

type ExperimentalServerOptionsOption func(e *ExperimentalServerOptions)

func WithDefaultExportBatchSize

func WithDefaultExportBatchSize(defaultExportBatchSize uint32) ExperimentalServerOptionsOption

WithDefaultExportBatchSize returns an option that can set DefaultExportBatchSize on a ExperimentalServerOptions

func WithMaxExportBatchSize

func WithMaxExportBatchSize(maxExportBatchSize uint32) ExperimentalServerOptionsOption

WithMaxExportBatchSize returns an option that can set MaxExportBatchSize on a ExperimentalServerOptions

func WithStreamReadTimeout

func WithStreamReadTimeout(streamReadTimeout time.Duration) ExperimentalServerOptionsOption

WithStreamReadTimeout returns an option that can set StreamReadTimeout on a ExperimentalServerOptions

Jump to

Keyboard shortcuts

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