scheduler

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{},
}

Functions

This section is empty.

Types

type Config added in v0.10.10

type Config struct {
	Worker   temporalclient.WorkerConfig   `koanf:"worker"`
	Workflow temporalclient.WorkflowConfig `koanf:"workflow"`
	Activity temporalclient.ActivityConfig `koanf:"activity"`
}

type Scheduler

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

func New

func New(l *zap.Logger, tc temporalclient.Client, cfg *Config) *Scheduler

func (*Scheduler) Create

func (sch *Scheduler) Create(ctx context.Context, tid sdktypes.TriggerID, schedule string) error

func (*Scheduler) Delete

func (sch *Scheduler) Delete(ctx context.Context, tid sdktypes.TriggerID) error

func (*Scheduler) Start

func (sch *Scheduler) Start(ctx context.Context, dispatcher sdkservices.Dispatcher, triggers sdkservices.Triggers) error

func (*Scheduler) Update

func (sch *Scheduler) Update(ctx context.Context, tid sdktypes.TriggerID, schedule string) error

Jump to

Keyboard shortcuts

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