redissnap

package
v0.0.0-...-eeebc8f Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(params Parameters, address string) (eventsourcing.MiddlewareFactory, error)

Create a snap provider using the default connection (localhost)

func CreateWithClient

func CreateWithClient(params Parameters, client *redis.Client) (eventsourcing.MiddlewareFactory, error)

CreateWithClient provisions a new instance of the dynamo-snap provider using an existing client

Types

type Parameters

type Parameters struct {
	Lazy            bool  // Lazy mode?
	SnapInterval    int64 `json:"snap_interval"` // SnapInterval is the number of events between snaps
	DefaultDuration time.Duration
}

Parameters describes the parameters that can be used to cofigure a Redis snap store.

Jump to

Keyboard shortcuts

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