stream

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: GPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpStream

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

func NewFileStream

func NewFileStream() *HttpStream

func (*HttpStream) Close

func (hs *HttpStream) Close()

func (*HttpStream) GetContentLen

func (hs *HttpStream) GetContentLen() int64

func (*HttpStream) Len

func (hs *HttpStream) Len() uint32

func (*HttpStream) Output

func (hs *HttpStream) Output(start, end uint32) []byte

func (*HttpStream) SetFileDescriptor

func (hs *HttpStream) SetFileDescriptor(f *os.File, start, length uint32)

func (*HttpStream) SetRawHeader

func (hs *HttpStream) SetRawHeader(h []byte)

func (*HttpStream) UpdateLen

func (hs *HttpStream) UpdateLen()

func (*HttpStream) Write

func (hs *HttpStream) Write(data []byte)

func (*HttpStream) WriteString

func (hs *HttpStream) WriteString(data string)

Jump to

Keyboard shortcuts

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