projection

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package projection provides engine components that handle messages that are routed to projection message handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is an implementation of engine.Controller for dogma.ProjectionMessageHandler implementations.

func NewController

func NewController(
	c configkit.RichProjection,
) *Controller

NewController returns a new controller for the given handler.

func (*Controller) Handle

func (c *Controller) Handle(
	ctx context.Context,
	obs fact.Observer,
	_ time.Time,
	env *envelope.Envelope,
) ([]*envelope.Envelope, error)

Handle handles a message.

func (*Controller) Identity added in v0.3.0

func (c *Controller) Identity() configkit.Identity

Identity returns the identity of the handler that is managed by this controller.

func (*Controller) Reset

func (c *Controller) Reset()

Reset does nothing.

func (*Controller) Tick

Tick does nothing.

func (*Controller) Type

func (c *Controller) Type() configkit.HandlerType

Type returns configkit.ProjectionHandlerType.

Jump to

Keyboard shortcuts

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