storage

package
v0.0.0-...-906b757 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	HandleMessage(ctx context.Context, msg ScheduledMessage) error
}

type Message

type Message struct {
	Data       []byte
	Attributes map[string]string
}

type ScheduledMessage

type ScheduledMessage struct {
	Message
	MessageType   string
	ScheduledTime time.Time
}

type SchedulerStorage

type SchedulerStorage interface {
	io.Closer
	Save(ctx context.Context, scheduledTime time.Time, msgType string, aggregationID string, msg Message) error
	GetLatest(ctx context.Context, olderThan time.Time, handler Handler) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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