Documentation ¶
Index ¶
- func ApplyGluonCachePathSuffix(basePath string) string
- func ApplyGluonConfigPathSuffix(basePath string) string
- type IMAPEventPublisher
- type IMAPSettingsProvider
- type SMTPSettingsProvider
- type Service
- func (sm *Service) AddIMAPUser(ctx context.Context, connector connector.Connector, addrID string, ...) error
- func (sm *Service) AddSMTPAccount(ctx context.Context, service *bridgesmtp.Service) error
- func (sm *Service) CloseServers(ctx context.Context) error
- func (sm *Service) Init(ctx context.Context, group *async.Group, subscription events.Subscription) error
- func (sm *Service) RemoveIMAPUser(ctx context.Context, deleteData bool, provider imapservice.GluonIDProvider, ...) error
- func (sm *Service) RemoveSMTPAccount(ctx context.Context, service *bridgesmtp.Service) error
- func (sm *Service) RestartIMAP(ctx context.Context) error
- func (sm *Service) RestartSMTP(ctx context.Context) error
- func (sm *Service) SetGluonDir(ctx context.Context, gluonDir string) error
- type Telemetry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IMAPEventPublisher ¶
type IMAPEventPublisher interface {
PublishIMAPEvent(ctx context.Context, event imapEvents.Event)
}
type IMAPSettingsProvider ¶
type SMTPSettingsProvider ¶
type SMTPSettingsProvider interface { TLSConfig() *tls.Config Log() bool Port() int SetPort(int) error UseSSL() bool Identifier() identifier.UserAgentUpdater }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages the IMAP & SMTP servers and their listeners.
func NewService ¶
func NewService( ctx context.Context, smtpSettings SMTPSettingsProvider, imapSettings IMAPSettingsProvider, eventPublisher events.EventPublisher, panicHandler async.PanicHandler, reporter reporter.Reporter, uidValidityGenerator imap.UIDValidityGenerator, telemetry Telemetry, ) *Service
func (*Service) AddIMAPUser ¶
func (sm *Service) AddIMAPUser( ctx context.Context, connector connector.Connector, addrID string, idProvider imapservice.GluonIDProvider, syncStateProvider syncservice.StateProvider, ) error
func (*Service) AddSMTPAccount ¶
func (*Service) RemoveIMAPUser ¶
func (sm *Service) RemoveIMAPUser(ctx context.Context, deleteData bool, provider imapservice.GluonIDProvider, addrID ...string) error
func (*Service) RemoveSMTPAccount ¶
Click to show internal directories.
Click to hide internal directories.