static

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BLOCK_SIZE = 4096

Variables

This section is empty.

Functions

func WriteBlob

func WriteBlob(fout *os.File, fin *os.File) error

func WriteContent

func WriteContent(fout *os.File, fin *os.File, content_type string) error

Types

type Blob

type Blob []byte

func (Blob) Bytes

func (b Blob) Bytes() ([]byte, error)

func (Blob) Encoding

func (b Blob) Encoding() string

func (Blob) NewReader

func (b Blob) NewReader() (*gzip.Reader, error)

func (Blob) RawBytes

func (b Blob) RawBytes() []byte

func (Blob) String

func (b Blob) String() string

type Content

type Content struct {
	Body        Blob
	ContentType string
}

func (Content) ServeHTTP

func (o Content) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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