Documentation
¶
Index ¶
- func DeflateGzipStream(r io.Reader) (io.Reader, error)
- func DeflateLZ4Stream(r io.Reader) (io.Reader, error)
- func DeflateStream(name string, r io.Reader) (io.Reader, error)
- func InflateGzipStream(r io.ReadCloser) (io.ReadCloser, error)
- func InflateLZ4Stream(r io.ReadCloser) (io.ReadCloser, error)
- func InflateStream(name string, r io.ReadCloser) (io.ReadCloser, error)
- type Configuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InflateGzipStream ¶
func InflateGzipStream(r io.ReadCloser) (io.ReadCloser, error)
func InflateLZ4Stream ¶
func InflateLZ4Stream(r io.ReadCloser) (io.ReadCloser, error)
func InflateStream ¶
func InflateStream(name string, r io.ReadCloser) (io.ReadCloser, error)
Types ¶
type Configuration ¶
type Configuration struct {
Algorithm string `json:"algorithm"`
Level int `json:"level"` // Compression level (-1 for default)
WindowSize int `json:"window_size"` // Window size for algorithms like zstd or Brotli
ChunkSize int `json:"chunk_size"` // Chunk size for streaming compression
BlockSize int `json:"block_size"` // Block size for block-based algorithms like bzip2
EnableCRC bool `json:"enable_CRC"` // Enable/disable checksum (e.g., gzip CRC32, zstd)
}
func LookupDefaultConfiguration ¶
func LookupDefaultConfiguration(algorithm string) (*Configuration, error)
func NewDefaultConfiguration ¶
func NewDefaultConfiguration() *Configuration
Click to show internal directories.
Click to hide internal directories.