cmdprocessor

package
v0.0.0-...-1fee6d4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2014 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package cmdprocessor provides a set of structs, variables and methods to process POP3 clients' commands.

Index

Constants

This section is empty.

Variables

View Source
var (
	//Contains commands and their relative functions (to be executed when a command is issued)
	Commands map[string]func(*Session, textual.Statement) (string, error) = map[string]func(*Session, textual.Statement) (string, error){
		"apop": apop.Process,
		"capa": capa.Process,
		"user": user.Process,
		"pass": pass.Process,
		"stat": stat.Process,
		"list": list.Process,
		"uidl": uidl.Process,
		"top":  top.Process,
		"retr": retr.Process,
		"dele": dele.Process,
		"rset": rset.Process,
		"quit": quit.Process,
		"auth": auth.Process,
		"stls": stls.Process,
	}
)

Functions

This section is empty.

Types

type Processor

type Processor struct {
	Session     *Session //POP3 session, accessible by both the commands and the client handler
	LastCommand string   //The last successfully issued command
}

Struct to provide a throw-away command processor and session for POP3.

func (*Processor) Process

func (p *Processor) Process(s string) string

Processes a POP3 command and returns a result.

Directories

Path Synopsis
Package apop implements the APOP command.
Package apop implements the APOP command.
Package auth implements POP3 authentication, such as PLAIN, LOGIN, and CRAM-MD5 SASL methods.
Package auth implements POP3 authentication, such as PLAIN, LOGIN, and CRAM-MD5 SASL methods.
Implements the CAPA command.
Implements the CAPA command.
Implements the DELE command.
Implements the DELE command.
Implements the LIST command.
Implements the LIST command.
Implements the NOOP command.
Implements the NOOP command.
Implements the PASS command.
Implements the PASS command.
Implements the QUIT command.
Implements the QUIT command.
Implements the RETR command.
Implements the RETR command.
Implements the RSET command.
Implements the RSET command.
Implements the STAT command.
Implements the STAT command.
Implements the STLS command.
Implements the STLS command.
Implements the TOP command.
Implements the TOP command.
Implements the UIDL command.
Implements the UIDL command.
Implements the USER command.
Implements the USER command.

Jump to

Keyboard shortcuts

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