mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-07 06:57:37 +03:00
16 lines
500 B
Go
16 lines
500 B
Go
package module
|
|
|
|
import imapbackend "github.com/emersion/go-imap/backend"
|
|
|
|
// Storage interface is a slightly modified go-imap's Backend interface
|
|
// (authentication is removed).
|
|
type Storage interface {
|
|
// GetOrCreateUser returns User associated with user account specified by
|
|
// name.
|
|
//
|
|
// If it doesn't exists - it should be created.
|
|
GetOrCreateUser(username string) (imapbackend.User, error)
|
|
|
|
// Extensions returns list of IMAP extensions supported by backend.
|
|
IMAPExtensions() []string
|
|
}
|