postgresstore

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config, options ...Option) (*postgresStore, error)

New constructs an postgresStore.

Types

type Config

type Config struct {
	Host     string
	Port     int
	User     string
	Password string
	DBName   string
}

func (Config) DataSourceName

func (c Config) DataSourceName() string

type JsonSerializer

type JsonSerializer interface {
	rangedb.EventBinder
	rangedb.EventTypeIdentifier
}

type Option

type Option func(*postgresStore)

Option defines functional option parameters for postgresStore.

func WithClock

func WithClock(clock clock.Clock) Option

WithClock is a functional option to inject a clock.Clock.

Jump to

Keyboard shortcuts

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