gzip

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const ID = "gzip"

ID contains default service name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable bool
}

Config describes file location and controls access to them.

func (*Config) Hydrate

func (c *Config) Hydrate(cfg service.Config) error

Hydrate must populate Config values using given Config source. Must return error if Config is not valid.

func (*Config) InitDefaults

func (c *Config) InitDefaults() error

InitDefaults sets missing values to their default values.

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) Init

func (s *Service) Init(cfg *Config, r *rrhttp.Service) (bool, error)

Jump to

Keyboard shortcuts

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