Documentation ¶
Overview ¶
Package sql implements SQL-based storage module using go-imap-sql library (github.com/foxcpp/go-imap-sql).
Interfaces implemented: - module.StorageBackend - module.AuthProvider - module.DeliveryTarget
Index ¶
- func New(_, instName string, _, inlineArgs []string) (module.Module, error)
- type Storage
- func (store *Storage) CheckPlain(username, password string) bool
- func (store *Storage) Close() error
- func (store *Storage) CreateMessageLimit() *uint32
- func (store *Storage) CreateUser(username, password string) error
- func (store *Storage) CreateUserNoPass(username string) error
- func (store *Storage) DeleteUser(username string) error
- func (store *Storage) EnableChildrenExt() bool
- func (store *Storage) EnableUpdatePipe(mode updatepipe.BackendMode) error
- func (store *Storage) GetOrCreateUser(username string) (backend.User, error)
- func (store *Storage) GetUser(username string) (backend.User, error)
- func (store *Storage) I18NLevel() int
- func (store *Storage) IMAPExtensions() []string
- func (store *Storage) Init(cfg *config.Map) error
- func (store *Storage) InstanceName() string
- func (store *Storage) ListUsers() ([]string, error)
- func (store *Storage) Name() string
- func (store *Storage) SetUserPassword(username, newPassword string) error
- func (store *Storage) Start(ctx context.Context, msgMeta *module.MsgMetadata, mailFrom string) (module.Delivery, error)
- func (store *Storage) Updates() <-chan backend.Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct { Back *imapsql.Backend Log log.Logger // contains filtered or unexported fields }
func (*Storage) CheckPlain ¶
func (*Storage) CreateMessageLimit ¶
func (*Storage) CreateUser ¶
func (*Storage) CreateUserNoPass ¶
func (*Storage) DeleteUser ¶
func (*Storage) EnableChildrenExt ¶
func (*Storage) EnableUpdatePipe ¶
func (store *Storage) EnableUpdatePipe(mode updatepipe.BackendMode) error
func (*Storage) GetOrCreateUser ¶
func (*Storage) IMAPExtensions ¶
func (*Storage) InstanceName ¶
func (*Storage) SetUserPassword ¶
Click to show internal directories.
Click to hide internal directories.