postgres

package
v1.200.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresEventProducer

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

func NewPostgresEventProducer

func NewPostgresEventProducer(cfg PostgresEventProducerConfig) (eventProducer *PostgresEventProducer)

func (*PostgresEventProducer) Invalidations

func (e *PostgresEventProducer) Invalidations() <-chan events.Invalidation

func (*PostgresEventProducer) Run

func (e *PostgresEventProducer) Run() error

func (*PostgresEventProducer) Saves

func (e *PostgresEventProducer) Saves() <-chan events.Save

type PostgresEventProducerConfig

type PostgresEventProducerConfig struct {
	DB                 *sql.DB
	RequestType        config.DataType
	CacheInitQuery     string
	CacheInitTimeout   time.Duration
	CacheUpdateQuery   string
	CacheUpdateTimeout time.Duration
	MetricsEngine      metrics.MetricsEngine
}

Jump to

Keyboard shortcuts

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