watcherstate

package
v0.0.0-...-8c998e4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisStateDataGateway

func NewRedisStateDataGateway(
	serviceKey string,
	redisClient datagateway.RedisClient,
) (
	superwatcher.StateDataGateway,
	error,
)

NewRedisStateDataGateway returns default implementation of StateDataGateway. It uses |serviceKey| to compose a Redis key to independently store multiple superwatcher-derived services on the same Redis database. If you only use default `superwatcher.Emitter` implementation for your service, then **your own code is responsible for calling `SetLastRecordedBlock`**.

Types

This section is empty.

Jump to

Keyboard shortcuts

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