stream

package
v0.0.0-...-2c8718e Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

func NewStream

func NewStream(ctx context.Context, cfg config.Config, db *dao.DB) (*Stream, error)

func (*Stream) AddWALTable

func (s *Stream) AddWALTable(ctx context.Context, source config.Source, target config.Target) error

func (*Stream) ApplySnapshot

func (s *Stream) ApplySnapshot(mode config.SnapMode, source config.Source, target config.Target, snapTopic string) (header creek.SnapshotHeader, err error)

func (*Stream) CreateSchema

func (s *Stream) CreateSchema(ctx context.Context, source config.Source, target config.Target) error

func (*Stream) Done

func (s *Stream) Done() <-chan struct{}

func (*Stream) NewSnapshot

func (s *Stream) NewSnapshot(mode config.SnapMode, source config.Source, target config.Target) (heder creek.SnapshotHeader, err error)

func (*Stream) PauseWAL

func (s *Stream) PauseWAL(target config.Target)

func (*Stream) RemoveWALTable

func (s *Stream) RemoveWALTable(target config.Target) error

func (*Stream) ResumeWAL

func (s *Stream) ResumeWAL(target config.Target, skipToLSN pglogrepl.LSN)

func (*Stream) SnapsDone

func (s *Stream) SnapsDone() <-chan struct{}

SnapsDone returns a channel that sends a message when all snapshots are finished

func (*Stream) StartListenAPI

func (s *Stream) StartListenAPI()

Jump to

Keyboard shortcuts

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