{"modulePath":"github.com/foxcpp/maddy","version":"v0.1.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sql\n\nPackage sql implements SQL-based storage module using go-imap-sql library (github.com/foxcpp/go-imap-sql).\n\nInterfaces implemented: - module.StorageBackend - module.AuthProvider - module.DeliveryTarget\n\n## Functions\n\n```go\nfunc New(_, instName string, _, inlineArgs []string) (module.Module, error)\n```\n\n## Types\n\n```go\ntype Storage struct {\n\tBack *imapsql.Backend\n\n\tLog log.Logger\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (store *Storage) CheckPlain(username, password string) bool\n```\n\n```go\nfunc (store *Storage) Close() error\n```\n\n```go\nfunc (store *Storage) CreateMessageLimit() *uint32\n```\n\n```go\nfunc (store *Storage) CreateUser(username, password string) error\n```\n\n```go\nfunc (store *Storage) CreateUserNoPass(username string) error\n```\n\n```go\nfunc (store *Storage) DeleteUser(username string) error\n```\n\n```go\nfunc (store *Storage) EnableChildrenExt() bool\n```\n\n```go\nfunc (store *Storage) EnableUpdatePipe(mode updatepipe.BackendMode) error\n```\n\n```go\nfunc (store *Storage) GetOrCreateUser(username string) (backend.User, error)\n```\n\n```go\nfunc (store *Storage) GetUser(username string) (backend.User, error)\n```\n\n```go\nfunc (store *Storage) I18NLevel() int\n```\n\n```go\nfunc (store *Storage) IMAPExtensions() []string\n```\n\n```go\nfunc (store *Storage) Init(cfg *config.Map) error\n```\n\n```go\nfunc (store *Storage) InstanceName() string\n```\n\n```go\nfunc (store *Storage) ListUsers() ([]string, error)\n```\n\n```go\nfunc (store *Storage) Name() string\n```\n\n```go\nfunc (store *Storage) SetUserPassword(username, newPassword string) error\n```\n\n```go\nfunc (store *Storage) Start(ctx context.Context, msgMeta *module.MsgMetadata, mailFrom string) (module.Delivery, error)\n```\n\n```go\nfunc (store *Storage) Updates() \u003c-chan backend.Update\n```\n\n","path":"github.com/foxcpp/maddy/internal/storage/sql","name":"sql","synopsis":"Package sql implements SQL-based storage module using go-imap-sql library (github.com/foxcpp/go-imap-sql).","isRedistributable":true}
