transfer

package
v0.0.0-...-d8c43cd Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MD5Reader

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

MD5Reader is responsible for reading from stdin

func NewMD5Reader

func NewMD5Reader(input io.Reader, hash bool) *MD5Reader

NewMD5Reader create a new InputReader

func (*MD5Reader) Hashing

func (i *MD5Reader) Hashing() bool

Hashing tells wether data is hashed

func (*MD5Reader) Read

func (i *MD5Reader) Read(p []byte) (n int, err error)

func (*MD5Reader) Sum

func (i *MD5Reader) Sum() []byte

Sum returns the md5 of all congested data

Jump to

Keyboard shortcuts

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