From 50b7667cd6b101479a476bd2cc628bfcd97ebe4d Mon Sep 17 00:00:00 2001 From: Aleksei Iakovlev Date: Thu, 19 Sep 2024 14:19:18 +0800 Subject: [PATCH] CDP-1182 add proxy_cache_key option --- gcore/options.go | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/gcore/options.go b/gcore/options.go index fe6c425..bb8be7c 100644 --- a/gcore/options.go +++ b/gcore/options.go @@ -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"` @@ -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 { @@ -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"`