Documentation ¶
Overview ¶
Package protocol provides implementations of different Thrift protocols.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol interface { // Encode the given Value and write the result to the given Writer. Encode(v wire.Value, w io.Writer) error // EncodeEnveloped encodes the enveloped value and writes the result // to the given Writer. EncodeEnveloped(e wire.Envelope, w io.Writer) error // Decode reads a Value of the given type from the given Reader. Decode(r io.ReaderAt, t wire.Type) (wire.Value, error) // DecodeEnveloped reads an enveloped value from the given Reader. // Enveloped values are assumed to be TStructs. DecodeEnveloped(r io.ReaderAt) (wire.Envelope, error) }
Protocol defines a specific way for a Thrift value to be encoded or decoded.
var Binary Protocol
Binary implements the Thrift Binary Protocol.
Click to show internal directories.
Click to hide internal directories.