Documentation ¶
Index ¶
- Constants
- Variables
- func Check(conf *Config, workers map[eosc.RequireId]eosc.IWorker) error
- func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)
- func NewFactory() eosc.IExtenderDriverFactory
- func Register(register eosc.IExtenderDriverRegister)
- type Config
- type Gzip
- func (g *Gzip) CheckSkill(skill string) bool
- func (g *Gzip) Destroy()
- func (g *Gzip) DoFilter(ctx eocontext.EoContext, next eocontext.IChain) (err error)
- func (g *Gzip) DoHttpFilter(ctx http_service.IHttpContext, next eocontext.IChain) (err error)
- func (g *Gzip) Reset(conf interface{}, workers map[eosc.RequireId]eosc.IWorker) error
- func (g *Gzip) Start() error
- func (g *Gzip) Stop() error
Constants ¶
View Source
const (
Name = "gzip"
)
Variables ¶
View Source
var (
ErrorMinLengthError = errors.New("the min_length field should > 0")
)
Functions ¶
func NewFactory ¶
func NewFactory() eosc.IExtenderDriverFactory
func Register ¶
func Register(register eosc.IExtenderDriverRegister)
Types ¶
type Gzip ¶
type Gzip struct { drivers.WorkerBase // contains filtered or unexported fields }
func (*Gzip) CheckSkill ¶
func (*Gzip) DoHttpFilter ¶ added in v0.8.0
func (g *Gzip) DoHttpFilter(ctx http_service.IHttpContext, next eocontext.IChain) (err error)
Click to show internal directories.
Click to hide internal directories.