mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-12-18 02:17:17 +00:00
13 lines
317 B
Go
13 lines
317 B
Go
|
package storage
|
||
|
|
||
|
import "github.com/ian-kent/Go-MailHog/mailhog/data"
|
||
|
|
||
|
// Storage represents a storage backend
|
||
|
type Storage interface {
|
||
|
Store(m *data.Message) (string, error)
|
||
|
List(start int, limit int) (*data.Messages, error)
|
||
|
DeleteOne(id string) error
|
||
|
DeleteAll() error
|
||
|
Load(id string) (*data.Message, error)
|
||
|
}
|