stores

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

func PutMessage

func PutMessage(sent Sent, messageID mail.ID, msg []byte) (location string, err error)

PutMessage does the pre work before saving the message as implemented by store.

Types

type Inbox

type Inbox interface {
	DeleteMessageRead(messageID mail.ID) error
	PutMessageRead(messageID mail.ID) error
	GetReadStatus(messageID mail.ID) (bool, error)
}

Inbox all the actions that support inbox functionality

type Sent

type Sent interface {
	// PutMessage should write the message contents to the underlying storage service. Return the final location or any error.
	PutMessage(path string, msg []byte) (location string, err error)
}

The Sent saves the message. This should not be used directly but as the first argument of storing.PutMessage.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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