quotaedreader

package
v0.0.0-...-6c5b0a6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuotaExceededErr

type QuotaExceededErr struct{}

func NewQuotaExceededErr

func NewQuotaExceededErr() QuotaExceededErr

func (QuotaExceededErr) Error

func (e QuotaExceededErr) Error() string

type QuotaedReader

type QuotaedReader struct {
	DelegateReader io.ReadCloser
	QuotaLeft      int64
}

func New

func New(delegateReader io.ReadCloser, quotaLeft int64) *QuotaedReader

func (*QuotaedReader) Close

func (q *QuotaedReader) Close() error

func (*QuotaedReader) Read

func (q *QuotaedReader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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