gzip

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gzip provides GZip related functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressWithGzip

func CompressWithGzip(data io.Reader) (io.ReadCloser, error)

CompressWithGzip takes an io.Reader as input and pipes it through a gzip.Writer returning an io.Reader containing the gzipped data. An error is returned if passing data to the gzip.Writer fails this is shamelessly stolen from https://github.com/influxdata/telegraf

Types

type ReadWaitCloser added in v1.0.0

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

func (*ReadWaitCloser) Close added in v1.0.0

func (r *ReadWaitCloser) Close() error

Jump to

Keyboard shortcuts

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