config

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitStrategy

type CommitStrategy int

CommitStrategy describes how the ingestor should handle the ingested data Single Transaction or Commit on Each Batch

const (
	CommitOnEnd CommitStrategy = iota + 1
	CommitOnEachBatch
)

Available values for the CommitStrategy enum

func ParseStrategyString

func ParseStrategyString(strategy string) (CommitStrategy, error)

ParseStrategyString returns the enum value matching the string, or an error

func (CommitStrategy) String

func (s CommitStrategy) String() string

type IngestorConfig

type IngestorConfig struct {
	IngestorID              string
	BatchSize               uint16
	RollbackOnExternalError bool
	CommitStrategy          CommitStrategy
	SchemaStrategy          schemaconfig.SchemaStrategy
	Schema                  string
	ChunkTimeInterval       string
}

IngestorConfig holds all the properties required to create and run an ingestor

Jump to

Keyboard shortcuts

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