store

package
v0.0.0-...-addecfc Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemoryStore

func NewMemoryStore() *memory

Types

type Item

type Item struct {
	Id         uuid.UUID
	Sender     string
	Recipients []string
	Message    *email.Message
	FirstSeen  time.Time
}

func NewItem

func NewItem(message *email.Message, sender string, recipients []string) *Item

type Store

type Store interface {
	Get(id uuid.UUID) (*Item, error)
	List() ([]*Item, error)
	Push(item *Item) error
	PurgeBefore(t time.Time) error
	Purge() error
}

Jump to

Keyboard shortcuts

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