postgresql

package
v0.0.0-...-3b037d6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshot

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

func New

func New(pool *pgxpool.Pool, codec es.SnapshotCoder, threshold int) *Snapshot

func (*Snapshot) Load

func (s *Snapshot) Load(ctx context.Context, streamID uuid.UUID, streamType string) (es.Stream, error)

func (*Snapshot) Remove

func (s *Snapshot) Remove(ctx context.Context, streamType string, streamID uuid.UUID) error

func (*Snapshot) Reset

func (s *Snapshot) Reset(ctx context.Context, streamType string) error

func (*Snapshot) Should

func (s *Snapshot) Should(ctx context.Context, stream es.Stream) bool

func (*Snapshot) Take

func (s *Snapshot) Take(ctx context.Context, stream es.Stream) error

Jump to

Keyboard shortcuts

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