Documentation
¶
Index ¶
- func Load() error
- func LoadFile(file string) error
- func ParseInstrumentationConfig() (*otel.Config, error)
- func ParseStreamConfig() (*stream.Config, error)
- type BackoffConfig
- type BatchConfig
- type BulkIngestConfig
- type ColumnTransformersConfig
- type ConstantBackoffConfig
- type ConsumerGroupConfig
- type ExponentialBackoffConfig
- type FilterConfig
- type InjectorConfig
- type InstrumentationConfig
- type KafkaConfig
- type KafkaTargetConfig
- type KafkaTopicConfig
- type MetricsConfig
- type ModifiersConfig
- type PgDumpPgRestoreConfig
- type PostgresConfig
- type PostgresTargetConfig
- type ReplicationConfig
- type SearchConfig
- type SnapshotConfig
- type SnapshotDataConfig
- type SnapshotRecorderConfig
- type SnapshotSchemaConfig
- type SourceConfig
- type TLSConfig
- type TableTransformersConfig
- type TargetConfig
- type TopicConfig
- type TracesConfig
- type TransformationsConfig
- type WebhookCacheConfig
- type WebhookNotifierConfig
- type WebhookServerConfig
- type WebhookStoreConfig
- type WebhookSubscriptionsConfig
- type WebhooksConfig
- type YAMLConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseInstrumentationConfig ¶ added in v0.6.0
func ParseStreamConfig ¶
Types ¶
type BackoffConfig ¶
type BackoffConfig struct {
Exponential *ExponentialBackoffConfig `mapstructure:"exponential" yaml:"exponential"`
Constant *ConstantBackoffConfig `mapstructure:"constant" yaml:"constant"`
}
type BatchConfig ¶
type BulkIngestConfig ¶ added in v0.6.0
type BulkIngestConfig struct {
Enabled bool `mapstructure:"enabled" yaml:"enabled"`
}
type ConstantBackoffConfig ¶
type ConsumerGroupConfig ¶
type FilterConfig ¶
type InjectorConfig ¶
type InstrumentationConfig ¶ added in v0.6.0
type InstrumentationConfig struct {
Metrics *MetricsConfig `mapstructure:"metrics" yaml:"metrics"`
Traces *TracesConfig `mapstructure:"traces" yaml:"traces"`
}
type KafkaConfig ¶
type KafkaConfig struct {
Servers []string `mapstructure:"servers" yaml:"servers"`
Topic TopicConfig `mapstructure:"topic" yaml:"topic"`
ConsumerGroup ConsumerGroupConfig `mapstructure:"consumer_group" yaml:"consumer_group"`
TLS *TLSConfig `mapstructure:"tls" yaml:"tls"`
Backoff *BackoffConfig `mapstructure:"backoff" yaml:"backoff"`
}
type KafkaTargetConfig ¶
type KafkaTargetConfig struct {
Servers []string `mapstructure:"servers" yaml:"servers"`
Topic KafkaTopicConfig `mapstructure:"topic" yaml:"topic"`
TLS *TLSConfig `mapstructure:"tls" yaml:"tls"`
Batch *BatchConfig `mapstructure:"batch" yaml:"batch"`
}
type KafkaTopicConfig ¶
type MetricsConfig ¶ added in v0.6.0
type ModifiersConfig ¶
type ModifiersConfig struct {
Injector *InjectorConfig `mapstructure:"injector" yaml:"injector"`
Transformations *TransformationsConfig `mapstructure:"transformations" yaml:"transformations"`
Filter *FilterConfig `mapstructure:"filter" yaml:"filter"`
}
type PgDumpPgRestoreConfig ¶
type PgDumpPgRestoreConfig struct {
CleanTargetDB bool `mapstructure:"clean_target_db" yaml:"clean_target_db"`
CreateTargetDB bool `mapstructure:"create_target_db" yaml:"create_target_db"`
IncludeGlobalDBObjects bool `mapstructure:"include_global_db_objects" yaml:"include_global_db_objects"`
Role string `mapstructure:"role" yaml:"role"`
DumpFile string `mapstructure:"dump_file" yaml:"dump_file"`
}
type PostgresConfig ¶
type PostgresConfig struct {
URL string `mapstructure:"url" yaml:"url"`
Mode string `mapstructure:"mode" yaml:"mode"`
Snapshot *SnapshotConfig `mapstructure:"snapshot" yaml:"snapshot"`
Replication *ReplicationConfig `mapstructure:"replication" yaml:"replication"`
}
type PostgresTargetConfig ¶
type PostgresTargetConfig struct {
URL string `mapstructure:"url" yaml:"url"`
Batch *BatchConfig `mapstructure:"batch" yaml:"batch"`
BulkIngest *BulkIngestConfig `mapstructure:"bulk_ingest" yaml:"bulk_ingest"`
SchemaLogStoreURL string `mapstructure:"schema_log_store_url" yaml:"schema_log_store_url"`
DisableTriggers bool `mapstructure:"disable_triggers" yaml:"disable_triggers"`
OnConflictAction string `mapstructure:"on_conflict_action" yaml:"on_conflict_action"`
}
type ReplicationConfig ¶
type ReplicationConfig struct {
ReplicationSlot string `mapstructure:"replication_slot" yaml:"replication_slot"`
}
type SearchConfig ¶
type SearchConfig struct {
Engine string `mapstructure:"engine" yaml:"engine"`
URL string `mapstructure:"url" yaml:"url"`
Batch *BatchConfig `mapstructure:"batch" yaml:"batch"`
Backoff *BackoffConfig `mapstructure:"backoff" yaml:"backoff"`
}
type SnapshotConfig ¶
type SnapshotConfig struct {
Mode string `mapstructure:"mode" yaml:"mode"`
Tables []string `mapstructure:"tables" yaml:"tables"`
Recorder *SnapshotRecorderConfig `mapstructure:"recorder" yaml:"recorder"`
SnapshotWorkers int `mapstructure:"snapshot_workers" yaml:"snapshot_workers"`
Data *SnapshotDataConfig `mapstructure:"data" yaml:"data"`
Schema *SnapshotSchemaConfig `mapstructure:"schema" yaml:"schema"`
}
type SnapshotDataConfig ¶
type SnapshotRecorderConfig ¶
type SnapshotSchemaConfig ¶
type SnapshotSchemaConfig struct {
Mode string `mapstructure:"mode" yaml:"mode"`
PgDumpPgRestore *PgDumpPgRestoreConfig `mapstructure:"pgdump_pgrestore" yaml:"pgdump_pgrestore"`
}
type SourceConfig ¶
type SourceConfig struct {
Postgres *PostgresConfig `mapstructure:"postgres" yaml:"postgres"`
Kafka *KafkaConfig `mapstructure:"kafka" yaml:"kafka"`
}
type TableTransformersConfig ¶
type TableTransformersConfig struct {
Schema string `mapstructure:"schema" yaml:"schema"`
Table string `mapstructure:"table" yaml:"table"`
ColumnRules map[string]ColumnTransformersConfig `mapstructure:"column_transformers" yaml:"column_transformers"`
ValidationMode string `mapstructure:"validation_mode" yaml:"validation_mode"`
}
type TargetConfig ¶
type TargetConfig struct {
Postgres *PostgresTargetConfig `mapstructure:"postgres" yaml:"postgres"`
Kafka *KafkaTargetConfig `mapstructure:"kafka" yaml:"kafka"`
Search *SearchConfig `mapstructure:"search" yaml:"search"`
Webhooks *WebhooksConfig `mapstructure:"webhooks" yaml:"webhooks"`
}
type TopicConfig ¶
type TracesConfig ¶ added in v0.6.0
type TransformationsConfig ¶
type TransformationsConfig struct {
TransformerRules []TableTransformersConfig `mapstructure:"table_transformers" yaml:"table_transformers"`
ValidationMode string `mapstructure:"validation_mode" yaml:"validation_mode"`
}
type WebhookCacheConfig ¶
type WebhookNotifierConfig ¶
type WebhookServerConfig ¶
type WebhookStoreConfig ¶
type WebhookStoreConfig struct {
URL string `mapstructure:"url" yaml:"url"`
Cache *WebhookCacheConfig `mapstructure:"cache" yaml:"cache"`
}
type WebhookSubscriptionsConfig ¶
type WebhookSubscriptionsConfig struct {
Store WebhookStoreConfig `mapstructure:"store" yaml:"store"`
Server WebhookServerConfig `mapstructure:"server" yaml:"server"`
}
type WebhooksConfig ¶
type WebhooksConfig struct {
Subscriptions WebhookSubscriptionsConfig `mapstructure:"subscriptions" yaml:"subscriptions"`
Notifier WebhookNotifierConfig `mapstructure:"notifier" yaml:"notifier"`
}
type YAMLConfig ¶
type YAMLConfig struct {
Source SourceConfig `mapstructure:"source" yaml:"source"`
Target TargetConfig `mapstructure:"target" yaml:"target"`
Modifiers ModifiersConfig `mapstructure:"modifiers" yaml:"modifiers"`
}
Click to show internal directories.
Click to hide internal directories.