streamio

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MD5Hash

func MD5Hash(in []byte) []byte

Types

type MsgReader

type MsgReader interface {
	// Returns the next message.
	// If no message available, return nil, nil
	Read() ([]byte, error)
}

MsgReader wraps a message-based Read function

type Reader

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

Reader implements a streaming io.Reader from a MessageReader

func NewReader

func NewReader(mr MsgReader) *Reader

NewReader creates a streaming reader from a MessageReader

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

Read implements the read function in io.Reader

Jump to

Keyboard shortcuts

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