Skip to content

Commit

Permalink
Merge pull request #62 from G-Core/feature/CDP-1182_cache_key_option
Browse files Browse the repository at this point in the history
CDP-1182 add proxy_cache_key option
  • Loading branch information
freenoth authored Sep 19, 2024
2 parents bf3abd4 + 50b7667 commit 82c9b50
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions gcore/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type Options struct {
ImageStack *ImageStack `json:"image_stack"`
IPAddressACL *IPAddressACL `json:"ip_address_acl"`
LimitBandwidth *LimitBandwidth `json:"limit_bandwidth"`
ProxyCacheKey *ProxyCacheKey `json:"proxy_cache_key"`
ProxyCacheMethodsSet *ProxyCacheMethodsSet `json:"proxy_cache_methods_set"`
ProxyConnectTimeout *ProxyConnectTimeout `json:"proxy_connect_timeout"`
ProxyReadTimeout *ProxyReadTimeout `json:"proxy_read_timeout"`
Expand Down Expand Up @@ -106,14 +107,14 @@ type EdgeCacheSettings struct {
}

type FastEdgeAppConfig struct {
Enabled bool `json:"enabled"`
AppID string `json:"app_id"`
InterruptOnError bool `json:"interrupt_on_error"`
Enabled bool `json:"enabled"`
AppID string `json:"app_id"`
InterruptOnError bool `json:"interrupt_on_error"`
}

type FastEdge struct {
Enabled bool `json:"enabled"`
OnRequestHeaders *FastEdgeAppConfig `json:"on_request_headers"`
Enabled bool `json:"enabled"`
OnRequestHeaders *FastEdgeAppConfig `json:"on_request_headers"`
}

type FetchCompressed struct {
Expand Down Expand Up @@ -183,6 +184,11 @@ type LimitBandwidth struct {
Buffer int `json:"buffer"`
}

type ProxyCacheKey struct {
Enabled bool `json:"enabled"`
Value string `json:"value"`
}

type ProxyCacheMethodsSet struct {
Enabled bool `json:"enabled"`
Value bool `json:"value"`
Expand Down

0 comments on commit 82c9b50

Please sign in to comment.