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

    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.