rediscluster

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: 4 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(cli *redis.ClusterClient, codec es.SnapshotCoder, serviceName string, threshold int) *Snapshot

func (*Snapshot) Load

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

func (*Snapshot) Remove

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

func (*Snapshot) Reset

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

func (*Snapshot) Should

func (c *Snapshot) Should(_ context.Context, es es.Stream) bool

func (*Snapshot) Take

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

Jump to

Keyboard shortcuts

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