parser

package
v0.0.0-...-c5ad19c Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadArmor = errors.New("parser: bad ASCII-ARMOR")
View Source
var ErrMalformed = errors.New("parser: malformed remailer message")
View Source
var ErrNoRemail = errors.New("parser: not a remailer message")

Functions

This section is empty.

Types

type Extension

type Extension func(blk *armor.Block) func(*bytes.Buffer) (*bytes.Buffer, error)

type RemailerMessage

type RemailerMessage struct {
	Body       *bytes.Buffer
	To         string
	LatentTime string
}

type RemailerParser

type RemailerParser struct {
	KeyRing openpgp.KeyRing

	Exts []Extension
}

func (*RemailerParser) ParseMessage

func (rp *RemailerParser) ParseMessage(r io.Reader) (*RemailerMessage, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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