events

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package events provides the domain concept definitions needed to support twins clients events functionality.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRedisTwinSave indicates error while saving Twin in redis cache.
	ErrRedisTwinSave = errors.New("failed to save twin in redis cache")

	// ErrRedisTwinUpdate indicates error while saving Twin in redis cache.
	ErrRedisTwinUpdate = errors.New("failed to update twin in redis cache")

	// ErrRedisTwinIDs indicates error while getting Twin IDs from redis cache.
	ErrRedisTwinIDs = errors.New("failed to get twin id from redis cache")

	// ErrRedisTwinRemove indicates error while removing Twin from redis cache.
	ErrRedisTwinRemove = errors.New("failed to remove twin from redis cache")
)

Functions

func NewEventStoreMiddleware

func NewEventStoreMiddleware(ctx context.Context, svc twins.Service, url string) (twins.Service, error)

NewEventStoreMiddleware returns wrapper around things service that sends events to event store.

func NewTwinCache

func NewTwinCache(client *redis.Client) twins.TwinCache

NewTwinCache returns redis twin cache implementation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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