mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 22:34:04 +00:00
12 lines
309 B
Go
12 lines
309 B
Go
package storage
|
|
|
|
import "github.com/ian-kent/Go-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)
|
|
}
|