Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Listener ListenerCfg // 数据库监控器配置 Database DatabaseCfg // 数据库连接配置 Publisher PublisherCfg // 事件发布器配置 Dumper DumperCfg // Dumper 配置 Logger LoggerCfg // 日志配置 }
Config for pg-listener/
type DatabaseCfg ¶
type DatabaseCfg struct { Host string `valid:"required"` Port uint16 `valid:"required"` Name string `valid:"required"` User string `valid:"required"` Password string `valid:"required"` Schema string Filter FilterStruct }
DatabaseCfg path of the PostgreSQL DB config.
type FilterStruct ¶
FilterStruct incoming WAL message filter.
type ListenerCfg ¶
type ListenerCfg struct { SlotName string `valid:"required"` PubName string // 发布名称 Dump bool // 是否导出复制槽快照数据 AckTimeout time.Duration `valid:"required"` RefreshConnection time.Duration `valid:"required"` HeartbeatInterval time.Duration `valid:"required"` }
ListenerCfg path of the listener config.
Click to show internal directories.
Click to hide internal directories.