io

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2015 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadCloser

type ReadCloser interface {
	Reader
	io.Closer
}

func NewDelimitedReader

func NewDelimitedReader(r io.Reader, maxSize int) ReadCloser

func NewFullReader

func NewFullReader(r io.Reader, maxSize int) ReadCloser

func NewUint32DelimitedReader

func NewUint32DelimitedReader(r io.Reader, byteOrder binary.ByteOrder, maxSize int) ReadCloser

type Reader

type Reader interface {
	ReadMsg(msg proto.Message) error
}

type WriteCloser

type WriteCloser interface {
	Writer
	io.Closer
}

func NewDelimitedWriter

func NewDelimitedWriter(w io.Writer) WriteCloser

func NewFullWriter

func NewFullWriter(w io.Writer) WriteCloser

func NewSizeUint32DelimitedWriter

func NewSizeUint32DelimitedWriter(w io.Writer, byteOrder binary.ByteOrder, size int) WriteCloser

func NewUint32DelimitedWriter

func NewUint32DelimitedWriter(w io.Writer, byteOrder binary.ByteOrder) WriteCloser

type Writer

type Writer interface {
	WriteMsg(proto.Message) error
}

Jump to

Keyboard shortcuts

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