protoio

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseFunc

type ParseFunc func([]byte) (proto.Message, error)

type Reader

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

func NewReader

func NewReader(src io.Reader) Reader

type Sha256Writer

type Sha256Writer struct {
	// contains filtered or unexported fields
}

func NewSha256Writer

func NewSha256Writer(dest io.Writer) *Sha256Writer

func (*Sha256Writer) Hash

func (w *Sha256Writer) Hash() []byte

func (*Sha256Writer) Write

func (w *Sha256Writer) Write(b []byte) (int, error)

type Writer

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

func NewWriter

func NewWriter(dest io.Writer) Writer

Jump to

Keyboard shortcuts

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