sessions

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Folder

type Folder struct {
	FolderName string
	Messages   []Message
}

Folder represents an IMAP folder including contained messages.

type IMAPCommand

type IMAPCommand struct {
	Command   string
	Arguments []string
}

IMAPCommand contains the string of the command and the corresponding arguments.

func GenerateSession

func GenerateSession(minLength int, maxLength int) []IMAPCommand

GenerateSession generates a random sequence of IMAPCommands. The length of the sequence is between minLength and maxLength.

type Message

type Message struct {
	Flags []string
}

Message represents a message, in this case only the flags are relevant to generate a session.

Jump to

Keyboard shortcuts

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