Documentation ¶
Overview ¶
Package gob encodes/decodes Agent messages
Index ¶
Constants ¶
View Source
const ( STRING = 0 BASE = 1 DELEGATE = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coder ¶
type Coder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
NewEncoder is a factory that returns a structure that implements the Transformer interface
func (*Coder) Construct ¶
Construct takes in data, Gob encodes it, and returns the encoded data as bytes
func (*Coder) Decode ¶
Decode takes in bytes and Gob decodes it to its original type This function is exported so that it can be called directly outside the Transformer interface
func (*Coder) Deconstruct ¶
Deconstruct takes in bytes and Gob decodes it to its original type
Click to show internal directories.
Click to hide internal directories.