events

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIngestProjectEventWorkflowID

func GetIngestProjectEventWorkflowID(eid apievent.EventID, pid apiproject.ProjectID) string

func TopicForEvent added in v0.6.0

func TopicForEvent(id apievent.EventID) string

func TopicForProject added in v0.10.0

func TopicForProject(id apiproject.ProjectID) string

Types

type Events

type Events struct {
	Temporal temporalclient.Client
	PubSub   pubsub.PubSub
	Stores   Stores
	Run      func(workflow.Context, *apievent.Event, *apiproject.Project, string) (*apilang.RunSummary, error)

	L L.Nullable
	// contains filtered or unexported fields
}

func (*Events) IngestEvent

func (e *Events) IngestEvent(
	ctx context.Context,
	id apievent.EventID,
	srcid apieventsrc.EventSourceID,
	assoc string,
	originalID string,
	typ string,
	data map[string]*apivalues.Value,
	memo map[string]string,
) (apievent.EventID, error)

func (*Events) Init

func (e *Events) Init()

func (*Events) MonitorProjectEvents added in v0.10.0

func (e *Events) MonitorProjectEvents(
	ctx context.Context,
	ch chan<- *apievent.TrackIngestEventUpdate,
	pid apiproject.ProjectID,
) error

func (*Events) Start

func (e *Events) Start() error

func (*Events) TrackIngestEvent added in v0.6.0

func (e *Events) TrackIngestEvent(
	ctx context.Context,
	ch chan<- *apievent.TrackIngestEventUpdate,
	id apievent.EventID,
	srcid apieventsrc.EventSourceID,
	assoc string,
	originalID string,
	typ string,
	data map[string]*apivalues.Value,
	memo map[string]string,
) error

type Stores

type Stores struct {
	Events       eventsstore.Store
	EventSources eventsrcsstore.Store
	Projects     projectsstore.Store
	Accounts     accountsstore.Store
}

Jump to

Keyboard shortcuts

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