streams

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ReadLimit = 3072

ReadLimit is the maximum number of bytes mimetype library reads from the input stream when detecting the type.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamStats

type StreamStats struct {
	Size        int64
	SHA256Hash  []byte
	ContentType string
}

type StreamStatsWriter

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

func NewStreamStatsWriter

func NewStreamStatsWriter() *StreamStatsWriter

func (*StreamStatsWriter) Stats

func (ssw *StreamStatsWriter) Stats() *StreamStats

func (*StreamStatsWriter) Write

func (ssw *StreamStatsWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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