projectors

package
v0.0.0-...-98ba599 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInvocationAggregate

func NewInvocationAggregate(invocationID string) fes.Aggregate

func NewTaskRunAggregate

func NewTaskRunAggregate(id string) fes.Aggregate

func NewWorkflowAggregate

func NewWorkflowAggregate(id string) fes.Aggregate

Types

type TaskRun

type TaskRun struct {
}

func NewTaskRun

func NewTaskRun() *TaskRun

func (*TaskRun) NewProjection

func (t *TaskRun) NewProjection(key fes.Aggregate) (fes.Entity, error)

func (*TaskRun) Project

func (t *TaskRun) Project(base fes.Entity, events ...*fes.Event) (updated fes.Entity, err error)

type Workflow

type Workflow struct {
}

func NewWorkflow

func NewWorkflow() *Workflow

func (*Workflow) NewProjection

func (w *Workflow) NewProjection(key fes.Aggregate) (fes.Entity, error)

func (*Workflow) Project

func (w *Workflow) Project(base fes.Entity, events ...*fes.Event) (updated fes.Entity, err error)

type WorkflowInvocation

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

func NewWorkflowInvocation

func NewWorkflowInvocation() *WorkflowInvocation

func (*WorkflowInvocation) NewProjection

func (i *WorkflowInvocation) NewProjection(key fes.Aggregate) (fes.Entity, error)

func (*WorkflowInvocation) Project

func (i *WorkflowInvocation) Project(base fes.Entity, events ...*fes.Event) (updated fes.Entity, err error)

Jump to

Keyboard shortcuts

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