Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPathMode ¶
GetPathMode returns a os.FileMode for the provided path.
func NewReadSeeker ¶
NewReadSeeker combines provided io.Reader and io.Seeker into a new io.ReadSeeker.
Types ¶
type BytesReadCloser ¶
BytesReadCloser is a basic in-memory reader with a closer interface.
type QuotaWriter ¶
type QuotaWriter struct {
// contains filtered or unexported fields
}
QuotaWriter returns an error once a given write quota gets exceeded.
func NewQuotaWriter ¶
func NewQuotaWriter(writer io.Writer, quota int64) *QuotaWriter
NewQuotaWriter returns a new QuotaWriter wrapping the given writer.
If the given quota is negative, then no quota is applied.
Click to show internal directories.
Click to hide internal directories.