Documentation ¶
Overview ¶
package for parsing, packing, signing, verifying nntp articles
Index ¶
- type Article
- type Attachment
- type Header
- func (self Header) Add(key, val string)
- func (self Header) AppendPath(name string)
- func (self Header) Get(key, fallback string) string
- func (self Header) GetMediaType() (mediatype string, params map[string]string, err error)
- func (self Header) Has(key string) bool
- func (self Header) IsMultipart() bool
- func (self Header) IsSigned() bool
- func (self Header) MessageID() (v string)
- func (self Header) Newsgroup() string
- func (self Header) Reference() (ref string)
- func (self Header) Set(key, val string)
- type HeaderIO
- type HeaderReader
- type HeaderWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct { // mimetype Mime string // the filename FileName string // the fully decoded attachment body // must close when done Body io.ReadCloser }
attachment in an nntp article
type Header ¶
an nntp message header
func (Header) AppendPath ¶
func (Header) GetMediaType ¶
extract media type from content-type header
func (Header) IsMultipart ¶
is this header for a multipart message?
type HeaderIO ¶
type HeaderIO struct {
// contains filtered or unexported fields
}
implements HeaderReader and HeaderWriter
func NewHeaderIO ¶
func NewHeaderIO() *HeaderIO
func (*HeaderIO) ReadHeader ¶
read header
Click to show internal directories.
Click to hide internal directories.