config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Marketo CDC polling period
	KeyPollingPeriod = "pollingPeriod"
	// KeySnapshotInitialDate is a date from which the snapshot iterator initially starts getting records.
	KeySnapshotInitialDate = "snapshotInitialDate"
	// Fields to retrieve from Marketo database
	KeyFields = "fields"
	// DefaultPollingPeriod is the value assumed for the pooling period when the
	// config omits the polling period parameter
	DefaultPollingPeriod = time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SourceConfig

type SourceConfig struct {
	config.Config
	PollingPeriod       time.Duration
	SnapshotInitialDate time.Time
	Fields              []string
}

SourceConfig represents source configuration with GCS configurations

func ParseSourceConfig

func ParseSourceConfig(ctx context.Context, cfg map[string]string) (SourceConfig, error)

ParseSourceConfig attempts to parse the configurations into a SourceConfig struct that Source could utilize

Jump to

Keyboard shortcuts

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