feat: add gzip global setting in configmap (#660)

This commit is contained in:
Jun
2023-12-18 19:05:29 +08:00
committed by GitHub
parent 8039b82699
commit 3cc1c7877f
8 changed files with 1102 additions and 1 deletions

View File

@@ -35,11 +35,13 @@ type ItemEventHandler = func(name string)
type HigressConfig struct {
Tracing *Tracing `json:"tracing,omitempty"`
Gzip *Gzip `json:"gzip,omitempty"`
}
func NewDefaultHigressConfig() *HigressConfig {
higressConfig := &HigressConfig{
Tracing: NewDefaultTracing(),
Gzip: NewDefaultGzip(),
}
return higressConfig
}