Skip to content

Commit

Permalink
CDI-816: add FastEdge option
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-lukyanchyk committed Aug 22, 2024
1 parent 1e07835 commit ce48490
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gcore/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type Options struct {
DisableCache *DisableCache `json:"disable_cache"`
DisableProxyForceRanges *DisableProxyForceRanges `json:"disable_proxy_force_ranges"`
EdgeCacheSettings *EdgeCacheSettings `json:"edge_cache_settings"`
FastEdge *FastEdge `json:"fastedge"`
FetchCompressed *FetchCompressed `json:"fetch_compressed"`
FollowOriginRedirect *FollowOriginRedirect `json:"follow_origin_redirect"`
ForceReturn *ForceReturn `json:"force_return"`
Expand Down Expand Up @@ -104,6 +105,17 @@ type EdgeCacheSettings struct {
Default string `json:"default"`
}

type FastEdgeAppConfig struct {
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"`
}

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

0 comments on commit ce48490

Please sign in to comment.