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 ¶
NewTwinCache returns redis twin cache implementation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.