compression

package
v0.0.0-...-581c60a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor interface {
	WriteFile(content []byte, key string)
	ReadAndWriteDecompressedFile(key, path string)
}

func New

func New() Compressor

type ZLibCompression

type ZLibCompression struct{}

func (*ZLibCompression) ReadAndWriteDecompressedFile

func (z *ZLibCompression) ReadAndWriteDecompressedFile(key, path string)

ReadAndWriteFile reads the compressed file and writes it to the repository file system

func (*ZLibCompression) WriteFile

func (z *ZLibCompression) WriteFile(content []byte, key string)

WriteFile compresses the content and writes it to .dar/ objects store

Jump to

Keyboard shortcuts

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