compress

package
v0.0.0-...-0a50f52 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() cmd.Middleware

Command returns a special command to use as a middleware

Types

type Gzip

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

Gzip enables compression

func (*Gzip) Compress

func (g *Gzip) Compress(ctx context.Context) func(getter source.Getter) source.Getter

Compress implements a simple flate middleware

func (*Gzip) Get

func (g *Gzip) Get(context.Context) (io.ReadCloser, error)

Get implements storer.Getter

Jump to

Keyboard shortcuts

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