gzip

package
v0.1.238 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blackbox

type Blackbox interface {
	contract.GzipUtil
}

type Client

type Client interface {
	Blackbox
	contract.GzipReader
	contract.GzipWriter
}

func NewClient

func NewClient() Client

type DefaultTool added in v0.1.11

type DefaultTool struct {
	T *contract.Tool[Client]
}

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool

func (*DefaultTool) Read added in v0.1.11

func (d *DefaultTool) Read(ctx context.Context, r io.Reader) (io.Reader, error)

Read decompresses input data and returns an uncompressed reader.

func (*DefaultTool) Write added in v0.1.11

func (d *DefaultTool) Write(ctx context.Context, r io.Reader) (io.Reader, int64, error)

Write compresses input data using gzip and returns a gzip-compressed reader.

Jump to

Keyboard shortcuts

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