database

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseEventProducer

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

func NewDatabaseEventProducer

func NewDatabaseEventProducer(cfg DatabaseEventProducerConfig) (eventProducer *DatabaseEventProducer)

func (*DatabaseEventProducer) Invalidations

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

func (*DatabaseEventProducer) Run

func (e *DatabaseEventProducer) Run() error

func (*DatabaseEventProducer) Saves

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

type DatabaseEventProducerConfig

type DatabaseEventProducerConfig struct {
	Provider           db_provider.DbProvider
	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