Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DbHost string `yaml:"db_host"` DbPassword string `yaml:"db_password"` DbUser string `yaml:"db_user"` DbPort int `yaml:"db_port"` DbName string `yaml:"db_name"` DbSchema string `yaml:"db_schema"` DbTablesSchema []DbTablesSchema `yaml:"db_table_schema"` ReplicationSlotName string `yaml:"replication_slot_name"` TlsVerify TlsVerify `yaml:"tls_verify"` StreamOldData bool `yaml:"stream_old_data"` SeparateChanges bool `yaml:"separate_changes"` SnapshotMemorySafetyFactor float64 `yaml:"snapshot_memory_safety_factor"` BatchSize int `yaml:"batch_size"` }
type DbSchemaColumn ¶ added in v0.0.10
type DbTablesSchema ¶ added in v0.0.9
type DbTablesSchema struct { Table string `yaml:"table"` Columns []DbSchemaColumn `yaml:"columns"` }
type OnMessage ¶
type OnMessage = func(message Wal2JsonChanges)
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) LrMessageC ¶
func (s *Stream) LrMessageC() chan messages.Wal2JsonChanges
func (*Stream) SnapshotMessageC ¶
func (s *Stream) SnapshotMessageC() chan messages.Wal2JsonChanges
type TlsVerify ¶
type TlsVerify string
const TlsNoVerify TlsVerify = "none"
const TlsRequireVerify TlsVerify = "require"
type Wal2JsonChange ¶ added in v0.0.24
type Wal2JsonChanges ¶ added in v0.0.24
type Wal2JsonChanges struct { Lsn string Changes []Wal2JsonChange `json:"change"` }
Click to show internal directories.
Click to hide internal directories.