scheduler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobDefinition

type JobDefinition struct {
	Subject  string `json:"subject"`
	Schedule struct {
		Every string `json:"every,omitempty"`
		Cron  string `json:"cron,omitempty"`
	} `json:"schedule"`
}

type JobStatus

type JobStatus struct {
	Subject string `json:"subject"`
}

type Scheduler

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

func New

func New(nc *nats.Conn, js nats.JetStreamContext, kv nats.KeyValue, logger *zap.Logger) *Scheduler

func (*Scheduler) GetActiveJobs

func (s *Scheduler) GetActiveJobs() map[string]interface{}

func (*Scheduler) Run

func (s *Scheduler) Run(ctx context.Context) error

func (*Scheduler) ScheduleJobFromData

func (s *Scheduler) ScheduleJobFromData(data []byte)

Jump to

Keyboard shortcuts

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