helper

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReceiveReader added in v0.5.1

func NewReceiveReader(receiver func() ([]byte, error)) io.Reader

NewReceiveReader turns receiver into an io.Reader. Errors from the receiver function are passed on unmodified. This means receiver should emit io.EOF when done.

func NewSendWriter added in v0.5.1

func NewSendWriter(sender func(p []byte) error) io.Writer

NewSendWriter turns sender into an io.Writer. The number of 'bytes written' reported back is always len(p).

Types

type InfoRefsClient

type InfoRefsClient interface {
	Recv() (*pb.InfoRefsResponse, error)
}

type InfoRefsClientWriterTo

type InfoRefsClientWriterTo struct {
	InfoRefsClient
}

func (*InfoRefsClientWriterTo) WriteTo

func (clientReader *InfoRefsClientWriterTo) WriteTo(w io.Writer) (total int64, err error)

Jump to

Keyboard shortcuts

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