gzpool

package
v0.0.0-...-7e90556 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GZPool

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

GZPool is a pool of gzip.Writers you can Get and then Put back.

func New

func New(size int) *GZPool

New returns a GZPool starting with the given size.

func (*GZPool) Get

func (g *GZPool) Get(w io.Writer) *gzip.Writer

Get returns a gzip.Writer from the GZPool.

func (*GZPool) Put

func (g *GZPool) Put(w *gzip.Writer)

Put places the gzip.Writer back in the GZPool.

Jump to

Keyboard shortcuts

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