config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	MaxElements int

	MaxDurationMs int
	// contains filtered or unexported fields
}

func (*Batch) Clone

func (b *Batch) Clone() *Batch

func (*Batch) MaxDuration

func (b *Batch) MaxDuration() time.Duration

type Config

type Config struct {
	ID                  string
	Loader              *config.Config
	Stream              *tconfig.Stream
	UseFastMap          bool
	FastMapSize         int
	MaxMessageSize      int
	Concurrency         int
	Batch               *Batch
	Retry               *Retry
	StreamDisabled      bool
	LoadDelayMaxMs      int
	LoadDelaySeedPart   int
	LoadDelayEveryNExec int
	LoadDelayOnlyOnce   bool
}

func NewConfigFromURL

func NewConfigFromURL(ctx context.Context, URL string) (*Config, error)

func (*Config) Clone

func (c *Config) Clone() *Config

func (*Config) IsStreamEnabled

func (c *Config) IsStreamEnabled() bool

func (*Config) Validate

func (c *Config) Validate() error

type Retry

type Retry struct {
	EveryInSec int
	Max        int
}

func (Retry) Clone

func (r Retry) Clone() *Retry

Jump to

Keyboard shortcuts

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