mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-29 07:27:06 +00:00
Take care of more TODO flagged code
- Improve TODO comments, mention related issues - Export ErrNotWritable, move it to datastore.go - Improve logging of corrupt mailbox GOB file
This commit is contained in:
@@ -9,8 +9,13 @@ import (
|
||||
"github.com/jhillyerd/go.enmime"
|
||||
)
|
||||
|
||||
// ErrNotExist indicates the requested message does not exist
|
||||
var ErrNotExist = errors.New("Message does not exist")
|
||||
var (
|
||||
// ErrNotExist indicates the requested message does not exist
|
||||
ErrNotExist = errors.New("Message does not exist")
|
||||
|
||||
// ErrNotWritable indicates the message is closed; no longer writable
|
||||
ErrNotWritable = errors.New("Message not writable")
|
||||
)
|
||||
|
||||
// DataStore is an interface to get Mailboxes stored in Inbucket
|
||||
type DataStore interface {
|
||||
|
||||
Reference in New Issue
Block a user