producer

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package producer contains the domain events needed to support event sourcing of Sink service actions.

Index

Constants

View Source
const (
	DatasetPrefix = "dataset."
	DatasetCreate = DatasetPrefix + "create"
	DatasetRemove = DatasetPrefix + "remove"
	DatasetUpdate = DatasetPrefix + "update"
	PolicyPrefix  = "policy."
	PolicyCreate  = PolicyPrefix + "create"
	PolicyUpdate  = PolicyPrefix + "update"
	PolicyRemove  = PolicyPrefix + "remove"
)

Variables

View Source
var (
	ErrValidatePolicy = errors.New("failed to validate policy")
)

Functions

func NewEventStoreMiddleware

func NewEventStoreMiddleware(svc policies.Service, client *redis.Client, logger *zap.Logger) policies.Service

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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