scheduler

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

Scheduler defines the service in charge of retrieving the next batch of scheduled messages.

func New

New creates a Scheduler instance.

func (*Scheduler) DeliverMessage

func (s *Scheduler) DeliverMessage(message *resource.Message) error

DeliverMessage queues the message with the specified id to be delivered.

func (*Scheduler) RetrieveScheduledMessages

func (s *Scheduler) RetrieveScheduledMessages() ([]*resource.Message, error)

Jump to

Keyboard shortcuts

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