Documentation ¶
Overview ¶
Package plumb provides routines for sending and receiving messages for the plumber.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAttribute = errors.New("bad attribute syntax") ErrQuote = errors.New("bad attribute quoting") )
Functions ¶
Types ¶
type Attribute ¶
type Attribute struct { Name string // The name of the attribute ("addr"). Value string // The value of the attribute ("/long johns/") Next *Attribute }
Attribute represents a list of attributes for a single Message.
type Message ¶
type Message struct { Src string // The source of the message ("acme"). Dst string // The destination port of the message ("edit"). Dir string // The working directory in which to interpret the message. Type string // The type of the message ("text"). Attr *Attribute // The attributes; may be nil. Data []byte // The data; may be nil. }
Message represents a message to or from the plumber.
Click to show internal directories.
Click to hide internal directories.