Skip to content

Commit

Permalink
CDP-1182 add proxy_cache_key option
Browse files Browse the repository at this point in the history
  • Loading branch information
freenoth committed Sep 19, 2024
1 parent bf3abd4 commit 50b7667
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 50b7667

Please sign in to comment.