interfaces

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Overview

Defines an event scheduler interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddScheduleInput

type AddScheduleInput struct {
	// Defines the unique identifier associated with the schedule
	Identifier admin.NamedEntityIdentifier
	// Defines the schedule expression.
	ScheduleExpression admin.Schedule
	// Message payload encoded as an CloudWatch event rule InputTemplate.
	Payload *string
	// Optional: The application-wide prefix to be applied for schedule names.
	ScheduleNamePrefix string
}

type EventScheduler

type EventScheduler interface {
	// Schedules an event.
	AddSchedule(ctx context.Context, input AddScheduleInput) error

	// Removes an existing schedule.
	RemoveSchedule(ctx context.Context, input RemoveScheduleInput) error
}

type RemoveScheduleInput added in v0.3.38

type RemoveScheduleInput struct {
	// Defines the unique identifier associated with the schedule
	Identifier admin.NamedEntityIdentifier
	// Optional: The application-wide prefix to be applied for schedule names.
	ScheduleNamePrefix string
}

type WorkflowExecutor

type WorkflowExecutor interface {
	Run()
	Stop() error
}

Handles responding to scheduled workflow execution events and creating executions.

Jump to

Keyboard shortcuts

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