kenginezstd

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.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 Zstd

type Zstd struct {
	// The compression level. Accepted values: fastest, better, best, default.
	Level string `json:"level,omitempty"`
	// contains filtered or unexported fields
}

Zstd can create Zstandard encoders.

func (Zstd) AcceptEncoding

func (Zstd) AcceptEncoding() string

AcceptEncoding returns the name of the encoding as used in the Accept-Encoding request headers.

func (Zstd) KengineModule

func (Zstd) KengineModule() kengine.ModuleInfo

KengineModule returns the Kengine module information.

func (Zstd) NewEncoder

func (z Zstd) NewEncoder() encode.Encoder

NewEncoder returns a new Zstandard writer.

func (*Zstd) Provision

func (z *Zstd) Provision(ctx kengine.Context) error

Provision provisions z's configuration.

func (*Zstd) UnmarshalKenginefile

func (z *Zstd) UnmarshalKenginefile(d *kenginefile.Dispenser) error

UnmarshalKenginefile sets up the handler from Kenginefile tokens.

type ZstdPrecompressed

type ZstdPrecompressed struct {
	Zstd
}

ZstdPrecompressed provides the file extension for files precompressed with zstandard encoding.

func (ZstdPrecompressed) KengineModule

func (ZstdPrecompressed) KengineModule() kengine.ModuleInfo

KengineModule returns the Kengine module information.

func (ZstdPrecompressed) Suffix

func (ZstdPrecompressed) Suffix() string

Suffix returns the filename suffix of precompressed files.

Jump to

Keyboard shortcuts

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