zstd

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package zstd is a wrapper for using github.com/klauspost/compress/zstd with gRPC.

Index

Constants

View Source
const Name = "zstd"

Variables

View Source
var ErrNotInUse = errors.New("SetLevel ineffective because another zstd compressor has been registered")

Functions

func PretendInit

func PretendInit(clobbering bool)

func SetLevel

func SetLevel(level zstd.EncoderLevel) error

SetLevel updates the registered compressor to use a particular compression level. NOTE: this function must only be called from an init function, and is not threadsafe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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