postgresql

package
v0.0.0-...-da8027b Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConnectionClosed = errors.New("postgreSQL connections are closed")
View Source
var ErrUpdateVersion = errors.New("failed to update version")

Functions

This section is empty.

Types

type Source

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

func New

func New(p *pgxpool.Pool) *Source

func (*Source) Close

func (s *Source) Close() error

func (*Source) Connect

func (s *Source) Connect(ctx context.Context) error

func (*Source) OnConnect

func (s *Source) OnConnect(h func(context.Context) error)

func (*Source) OnEvent

func (s *Source) OnEvent(h eventbridge.EventHandlerFunc)

func (*Source) UpdateVersion

func (s *Source) UpdateVersion(ctx context.Context, sid stream.ID, st stream.Type, v stream.Version) (err error)

func (*Source) WalkUnpublishedEvents

func (s *Source) WalkUnpublishedEvents(ctx context.Context, walk eventbridge.WalkFunc) error

Jump to

Keyboard shortcuts

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