pilosa: github.com/pilosa/pilosa/encoding/proto Index | Files

package proto

import "github.com/pilosa/pilosa/encoding/proto"


Package Files


type Serializer Uses

type Serializer struct{}

Serializer implements pilosa.Serializer for protobufs.

func (Serializer) Marshal Uses

func (Serializer) Marshal(m pilosa.Message) ([]byte, error)

Marshal turns pilosa messages into protobuf serialized bytes.

func (Serializer) Unmarshal Uses

func (Serializer) Unmarshal(buf []byte, m pilosa.Message) error

Unmarshal takes byte slices and protobuf deserializes them into a pilosa Message.

Package proto imports 7 packages (graph) and is imported by 5 packages. Updated 2019-10-22. Refresh now. Tools for package owners.