scheduler

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName        = "scheduler"
	OutPort       string = "out"
	InPort        string = "in"
	StartPort     string = "start"
	AckPort       string = "ack"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

func (*Component) GetInfo

func (s *Component) GetInfo() module.ComponentInfo

func (*Component) Handle

func (s *Component) Handle(ctx context.Context, handler module.Handler, port string, msg interface{}) error

func (*Component) Instance

func (s *Component) Instance() module.Component

func (*Component) Ports

func (s *Component) Ports() []module.Port

type Context

type Context any

type InMessage

type InMessage struct {
	Context Context `json:"context" title:"Context" configurable:"true" description:"Arbitrary message to be send further"`
	Task    Task    `json:"task" title:"Task" required:"true"`
}

type OutMessage

type OutMessage struct {
	Task    Task    `json:"task"`
	Context Context `json:"context"`
}

type Settings

type Settings struct {
	EnableAckPort bool `` /* 134-byte string literal not displayed */
}

type Start added in v0.1.18

type Start struct {
}

type Task

type Task struct {
	ID       string    `json:"id" required:"true" title:"Unique task ID"`
	DateTime time.Time `json:"dateTime" required:"true" title:"Date and time" description:"Format examples: 2012-10-01T09:45:00.000+02:00"`
	Schedule bool      `` /* 144-byte string literal not displayed */
}

type TaskAck

type TaskAck struct {
	Task        Task    `json:"task"`
	Context     Context `json:"context"`
	ScheduledIn int64   `json:"scheduledIn"`
	Error       *string `json:"error"`
}

Jump to

Keyboard shortcuts

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