pbutil

package
v1.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadWriter

type ReadWriter interface {
	Reader
	Writer
}

ReadWriter is io.ReadWriter for proto.Message instead of []byte.

func NewReadWriter

func NewReadWriter(rw io.ReadWriter) ReadWriter

NewReadWriter returns a new ReadWriter with rw as both its source and its sink.

type Reader

type Reader interface {
	Read(val proto.Message) error
}

Reader is io.Reader for proto.Message instead of []byte.

func NewReader

func NewReader(r io.Reader) Reader

NewReader returns a new Reader with r as its source.

type Writer

type Writer interface {
	Write(val proto.Message) error
}

Writer is io.Writer for proto.Message instead of []byte.

func NewWriter

func NewWriter(w io.Writer) Writer

NewWriter returns a new Writer with w as its sink.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL