eventstreams

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRegistryWorkflowEventsNoBlock

func LoadRegistryWorkflowEventsNoBlock(
	stream pb.EphemeralRegistry_RegistryWorkflowEventsClient,
	loader Loader,
) error

func LoadRegistryWorkflowIndexEventsNoBlock

func LoadRegistryWorkflowIndexEventsNoBlock(
	stream pb.EphemeralRegistry_RegistryWorkflowIndexEventsClient,
	loader Loader,
) error

func WatchRegistryWorkflowEvents

func WatchRegistryWorkflowEvents(
	ctx context.Context,
	tail ulid.I,
	stream pb.EphemeralRegistry_RegistryWorkflowEventsClient,
	watcher Watcher,
	blocker WillBlocker,
) (ulid.I, error)

func WatchRegistryWorkflowIndexEvents

func WatchRegistryWorkflowIndexEvents(
	ctx context.Context,
	tail ulid.I,
	stream pb.EphemeralRegistry_RegistryWorkflowIndexEventsClient,
	watcher Watcher,
	blocker WillBlocker,
) (ulid.I, error)

Types

type Loader

type Loader interface {
	LoadWorkflowEvent(vid ulid.I, ev wfevents.WorkflowEvent) error
}

type LoaderFunc

type LoaderFunc func(vid ulid.I, ev wfevents.WorkflowEvent) error

func (LoaderFunc) LoadWorkflowEvent

func (f LoaderFunc) LoadWorkflowEvent(
	vid ulid.I, ev wfevents.WorkflowEvent,
) error

type Watcher

type Watcher interface {
	WatchWorkflowEvent(
		ctx context.Context,
		vid ulid.I,
		ev wfevents.WorkflowEvent,
	) (done bool, err error)
}

type WatcherFunc

type WatcherFunc func(
	ctx context.Context,
	vid ulid.I,
	ev wfevents.WorkflowEvent,
) (done bool, err error)

func (WatcherFunc) WatchWorkflowEvent

func (f WatcherFunc) WatchWorkflowEvent(
	ctx context.Context,
	vid ulid.I,
	ev wfevents.WorkflowEvent,
) (done bool, err error)

type WillBlocker

type WillBlocker interface {
	WillBlock(ctx context.Context) (done bool, err error)
}

type WillBlockerFunc

type WillBlockerFunc func(ctx context.Context) (done bool, err error)

func (WillBlockerFunc) WillBlock

func (f WillBlockerFunc) WillBlock(
	ctx context.Context,
) (done bool, err error)

Jump to

Keyboard shortcuts

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