pump

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Source imap.ConnectionConfig
	Dest   imap.ConnectionConfig

	SourceFactory imap.Factory
	DestFactory   imap.Factory

	IDLEFallbackInterval time.Duration
	BatchSize            uint
	DisableDeletions     bool
	FetchBufferSize      uint
	FetchMaxInterval     time.Duration

	DoneChan chan<- error
	StopChan <-chan struct{}
	Logger   *slog.Logger
}

type MailPump

type MailPump struct {
	// contains filtered or unexported fields
}

func NewMailPump

func NewMailPump(cfg *Config) (*MailPump, error)

func (*MailPump) Close

func (pump *MailPump) Close()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL