reminders

package
v0.0.0-...-7c85a9a Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReminderCallback

type ReminderCallback func(*grains.Invocation) (*grains.GrainExecution, error)

type ReminderConfig

type ReminderConfig struct {
	ReminderStoreDSN string
	TickInterval     time.Duration
	SiloClient       pb.SiloServiceClient
	MetricsRegistry  *metrics.MetricsRegistry
	RedisHostPort    string
	SiloHostPort     string
}

func (*ReminderConfig) ReminderStore

func (r *ReminderConfig) ReminderStore() (storage.ReminderStore, error)

type ReminderRegistry

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

func NewReminderRegistry

func NewReminderRegistry(ctx context.Context, config ReminderConfig) (*ReminderRegistry, error)

func (*ReminderRegistry) Register

func (r *ReminderRegistry) Register(name string, grainType string, grainId string, payload []byte, dueTime time.Time, period time.Duration) error

func (*ReminderRegistry) StartReminderProcess

func (r *ReminderRegistry) StartReminderProcess()

func (*ReminderRegistry) Tick

func (r *ReminderRegistry) Tick() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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