pachyderm: github.com/pachyderm/pachyderm/src/client/pkg/pbutil Index | Files

package pbutil

import "github.com/pachyderm/pachyderm/src/client/pkg/pbutil"

Index

Package Files

pbutil.go

type ReadWriter Uses

type ReadWriter interface {
    Reader
    Writer
}

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

func NewReadWriter Uses

func NewReadWriter(rw io.ReadWriter) ReadWriter

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

type Reader Uses

type Reader interface {
    Read(val proto.Message) error
    ReadBytes() ([]byte, error)
}

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

func NewReader Uses

func NewReader(r io.Reader) Reader

NewReader returns a new Reader with r as its source.

type Writer Uses

type Writer interface {
    Write(val proto.Message) (int64, error)
    WriteBytes([]byte) (int64, error)
}

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

func NewWriter Uses

func NewWriter(w io.Writer) Writer

NewWriter returns a new Writer with w as its sink.

Package pbutil imports 4 packages (graph) and is imported by 6 packages. Updated 2019-02-05. Refresh now. Tools for package owners.