Documentation ¶
Index ¶
- func Init(ctx context.Context, pgURL string) error
- func Run(ctx context.Context, logger loglib.Logger, config *Config, ...) error
- func TearDown(ctx context.Context, pgURL string) error
- type Config
- type KafkaListenerConfig
- type KafkaProcessorConfig
- type ListenerConfig
- type PostgresListenerConfig
- type ProcessorConfig
- type SearchProcessorConfig
- type WebhookProcessorConfig
- type WebhookSubscriptionStoreConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init initialises the pgstream state in the postgres database provided, along with creating the relevant replication slot.
Types ¶
type Config ¶
type Config struct { Listener ListenerConfig Processor ProcessorConfig }
type KafkaListenerConfig ¶
type KafkaListenerConfig struct { Reader kafka.ReaderConfig Checkpointer kafkacheckpoint.Config }
type KafkaProcessorConfig ¶
type KafkaProcessorConfig struct {
Writer *kafkaprocessor.Config
}
type ListenerConfig ¶
type ListenerConfig struct { Postgres *PostgresListenerConfig Kafka *KafkaListenerConfig }
type PostgresListenerConfig ¶
type PostgresListenerConfig struct {
Replication pgreplication.Config
}
type ProcessorConfig ¶
type ProcessorConfig struct { Kafka *KafkaProcessorConfig Search *SearchProcessorConfig Webhook *WebhookProcessorConfig Translator *translator.Config }
type SearchProcessorConfig ¶
type SearchProcessorConfig struct { Indexer search.IndexerConfig Store store.Config Retrier search.StoreRetryConfig }
type WebhookProcessorConfig ¶
type WebhookProcessorConfig struct { Notifier notifier.Config SubscriptionServer server.Config SubscriptionStore WebhookSubscriptionStoreConfig }
Click to show internal directories.
Click to hide internal directories.