pure

package
v4.24.0-no-otel.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKnownCompressionAlgorithm

func AddKnownCompressionAlgorithm(name string, a KnownCompressionAlgorithm) struct{}

Types

type CombinedReadCloser

type CombinedReadCloser struct {
	Primary, Source io.Reader
}

The Primary is read from and closed second. The Source is closed first.

func (*CombinedReadCloser) Close

func (c *CombinedReadCloser) Close() error

func (*CombinedReadCloser) Read

func (c *CombinedReadCloser) Read(b []byte) (int, error)

type CombinedWriteCloser

type CombinedWriteCloser struct {
	Primary, Sink io.Writer
}

The Primary is written to and closed first. The Sink is closed second.

func (*CombinedWriteCloser) Close

func (c *CombinedWriteCloser) Close() error

func (*CombinedWriteCloser) Write

func (c *CombinedWriteCloser) Write(b []byte) (int, error)

type CompressFunc

type CompressFunc func(level int, b []byte) ([]byte, error)

type CompressWriter

type CompressWriter func(level int, w io.Writer) (io.Writer, error)

type DecompressFunc

type DecompressFunc func(b []byte) ([]byte, error)

type DecompressReader

type DecompressReader func(r io.Reader) (io.Reader, error)

type KnownCompressionAlgorithm

type KnownCompressionAlgorithm struct {
	CompressFunc     CompressFunc
	CompressWriter   CompressWriter
	DecompressFunc   DecompressFunc
	DecompressReader DecompressReader
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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