compression

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataCompressionService

type DataCompressionService interface {
	// CompressRollup - uses the maximum compression level, because the final size matters when publishing to Ethereum
	CompressRollup(blob []byte) ([]byte, error)
	// CompressBatch - uses the default compression level, because the compression is for the efficiency of the p2p transfer
	CompressBatch(blob []byte) ([]byte, error)
	Decompress(blob []byte) ([]byte, error)
}

func NewBrotliDataCompressionService

func NewBrotliDataCompressionService() DataCompressionService

Jump to

Keyboard shortcuts

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