package proto
import "github.com/mesos/mesos-go/api/v1/lib/encoding/proto"
Package proto implements protobuf utilities such as functional options to construct complex structs and encoders and decoders composable with io.ReadWriters.
Index ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
An Encoder encodes and writes Protobuf messages to an io.Writer.
func NewEncoder ¶
NewEncoder returns a new Encoder that writes to the given io.Writer.
func (*Encoder) Encode ¶
Encode writes the given Protobuf-encoded message m to its io.Writer. If m isn't a proto.Message, Encode will panic.
Source Files ¶
- Version
- v0.0.3
- Published
- Jun 19, 2017
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 50 minutes ago –
Tools for package owners.