Documentation
¶
Index ¶
- func RunEmbeddedNATSServer(cfg Config) (*nats.Conn, *server.Server, error)
- type CDCPublisher
- type CDCSubscriber
- type Config
- type SequenceProvider
- type Snapshotter
- func (s *Snapshotter) LatestSnapshot(ctx context.Context) (uint64, io.ReadCloser, error)
- func (s *Snapshotter) LatestSnapshotSequence(ctx context.Context) (uint64, error)
- func (s *Snapshotter) SetSeqProvider(p SequenceProvider)
- func (s *Snapshotter) TakeSnapshot(ctx context.Context, dsn string, memdb bool) (sequence uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CDCPublisher ¶
type CDCPublisher struct {
// contains filtered or unexported fields
}
func NewCDCPublisher ¶
type CDCSubscriber ¶
type CDCSubscriber struct {
// contains filtered or unexported fields
}
func NewCDCSubscriber ¶
func (*CDCSubscriber) Close ¶
func (s *CDCSubscriber) Close()
func (*CDCSubscriber) DeliveredInfo ¶ added in v0.0.10
func (s *CDCSubscriber) DeliveredInfo(ctx context.Context, name string) ([]*jetstream.ConsumerInfo, error)
func (*CDCSubscriber) LatestSeq ¶ added in v0.0.10
func (s *CDCSubscriber) LatestSeq() uint64
func (*CDCSubscriber) RemoveConsumer ¶ added in v0.0.11
func (s *CDCSubscriber) RemoveConsumer(ctx context.Context, name string) error
type SequenceProvider ¶ added in v0.0.10
type SequenceProvider interface {
LatestSeq() uint64
}
type Snapshotter ¶ added in v0.0.9
type Snapshotter struct {
// contains filtered or unexported fields
}
func NewSnapshotter ¶ added in v0.0.9
func (*Snapshotter) LatestSnapshot ¶ added in v0.0.11
func (s *Snapshotter) LatestSnapshot(ctx context.Context) (uint64, io.ReadCloser, error)
func (*Snapshotter) LatestSnapshotSequence ¶ added in v0.0.11
func (s *Snapshotter) LatestSnapshotSequence(ctx context.Context) (uint64, error)
func (*Snapshotter) SetSeqProvider ¶ added in v0.0.10
func (s *Snapshotter) SetSeqProvider(p SequenceProvider)
func (*Snapshotter) TakeSnapshot ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.