Skip to content

Commit

Permalink
fix: add struct tag for caddy json (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredliang44 committed Jul 11, 2022
1 parent 44c2dd7 commit 141664b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions plugins/caddy/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ import (

// DefaultCache the struct
type DefaultCache struct {
AllowedHTTPVerbs []string
Badger configurationtypes.CacheProvider
CDN configurationtypes.CDN
DefaultCacheControl string
Distributed bool
Headers []string
Key configurationtypes.Key
Olric configurationtypes.CacheProvider
Etcd configurationtypes.CacheProvider
Nuts configurationtypes.CacheProvider
Regex configurationtypes.Regex
TTL configurationtypes.Duration
Stale configurationtypes.Duration
AllowedHTTPVerbs []string `json:"allowed_http_verbs"`
Badger configurationtypes.CacheProvider `json:"badger"`
CDN configurationtypes.CDN `json:"cdn"`
DefaultCacheControl string `json:"default_cache_control"`
Distributed bool `json:"distributed"`
Headers []string `json:"headers"`
Key configurationtypes.Key `json:"key"`
Olric configurationtypes.CacheProvider `json:"olric"`
Etcd configurationtypes.CacheProvider `json:"etcd"`
Nuts configurationtypes.CacheProvider `json:"nuts"`
Regex configurationtypes.Regex `json:"regex"`
TTL configurationtypes.Duration `json:"ttl"`
Stale configurationtypes.Duration `json:"stale"`
}

// GetAllowedHTTPVerbs returns the allowed verbs to cache
Expand Down

0 comments on commit 141664b

Please sign in to comment.