worker

package
v0.0.0-...-c4f21ae Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generator

func Generator(conf *config.Config, jobs chan Session, users []config.User)

expungeFolder generates an EXPUNGE command and removes all messages with a \Deleted flag from supplied folder.

func Worker

func Worker(id int, config *config.Config, jobs <-chan Session, logger chan<- []string)

Worker is the routine that sends the commands of the session to the server. The output will be logged and written in the logger channel.

Types

type Conn

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

Conn encapsulates connection adapters to write and read from an active TLS connection.

type Session

type Session struct {
	User     string
	Password string
	ID       int
	Commands []sessions.IMAPCommand
}

Session contains the user's credentials, an identifier for the session and a sequence of IMAP commands that has been generated by the sessions package.

Jump to

Keyboard shortcuts

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