Documentation ¶
Index ¶
- Constants
- func ActionFileCheck(conf *ActionFile) error
- func ProductRuleConfLoad(filename string) (productRuleConf, error)
- type Action
- type ActionFile
- type BrotliFilter
- type CompressRuleTable
- type ConfModCompress
- type GzipFilter
- type ModuleCompress
- type ModuleCompressState
- type ProductRules
- type ProductRulesFile
Constants ¶
View Source
const ( ActionGzip = "GZIP" ActionBrotli = "BROTLI" )
View Source
const ( // support encode type of Accept-Encoding header EncodeGzip = "gzip" EncodeBrotli = "br" // support encode type of Content-Encoding header EncodeIdentity = "identity" ModCompress = "mod_compress" )
Variables ¶
This section is empty.
Functions ¶
func ActionFileCheck ¶
func ActionFileCheck(conf *ActionFile) error
func ProductRuleConfLoad ¶
Types ¶
type ActionFile ¶
type BrotliFilter ¶
type BrotliFilter struct {
// contains filtered or unexported fields
}
func NewBrotliFilter ¶
func NewBrotliFilter(source io.ReadCloser, level int, size int) (b *BrotliFilter, err error)
func (*BrotliFilter) Close ¶
func (b *BrotliFilter) Close() error
type CompressRuleTable ¶
type CompressRuleTable struct {
// contains filtered or unexported fields
}
func NewCompressRuleTable ¶
func NewCompressRuleTable() *CompressRuleTable
func (*CompressRuleTable) Search ¶
func (t *CompressRuleTable) Search(product string) (*compressRuleList, bool)
func (*CompressRuleTable) Update ¶
func (t *CompressRuleTable) Update(conf productRuleConf)
type ConfModCompress ¶
type ConfModCompress struct { Basic struct { ProductRulePath string } Log struct { OpenDebug bool } }
func (*ConfModCompress) Check ¶
func (cfg *ConfModCompress) Check(confRoot string) error
type GzipFilter ¶
type GzipFilter struct {
// contains filtered or unexported fields
}
func NewGzipFilter ¶
func NewGzipFilter(source io.ReadCloser, level int, size int) (b *GzipFilter, err error)
func (*GzipFilter) Close ¶
func (b *GzipFilter) Close() error
type ModuleCompress ¶
type ModuleCompress struct {
// contains filtered or unexported fields
}
func NewModuleCompress ¶
func NewModuleCompress() *ModuleCompress
func (*ModuleCompress) Init ¶
func (m *ModuleCompress) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
func (*ModuleCompress) Name ¶
func (m *ModuleCompress) Name() string
type ModuleCompressState ¶
type ProductRules ¶
type ProductRules map[string]*compressRuleList
type ProductRulesFile ¶
type ProductRulesFile map[string]*compressRuleFileList
Click to show internal directories.
Click to hide internal directories.