reminders

package
v1.17.21 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReminderOpActorNotHosted = errors.New("operations on actor reminders are only possible on hosted actor types")
	ErrReminderStorageNotSet    = errors.New("reminder scheduler is not configured")
)

TODO: @joshvanl: move errors package

Functions

This section is empty.

Types

type Interface added in v1.15.0

type Interface interface {
	// Get retrieves an actor reminder.
	Get(ctx context.Context, req *api.GetReminderRequest) (*api.Reminder, error)

	// Create creates an actor reminder.
	Create(ctx context.Context, req *api.CreateReminderRequest) error

	// Delete deletes an actor reminder.
	Delete(ctx context.Context, req *api.DeleteReminderRequest) error

	// DeleteByActorID deletes all reminders for a given actor ID.
	DeleteByActorID(ctx context.Context, req *api.DeleteRemindersByActorIDRequest) error

	// List lists all reminders for a given actor type and actor ID.
	List(ctx context.Context, req *api.ListRemindersRequest) ([]*api.Reminder, error)

	// Scheduler returns the underlying reminder scheduler.
	// Used to bypass the actor hosted check.
	Scheduler() (scheduler.Interface, error)
}

func New added in v1.15.0

func New(opts Options) Interface

type Options added in v1.15.0

type Options struct {
	Scheduler scheduler.Interface
	Table     table.Interface
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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