responsecache

package
v0.0.0-...-8be9c10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHCL

func DecodeHCL(item *ast.ObjectItem) (interface{}, error)

DecodeHCL converts an HCL ast.ObjectItem into a ResponseCache

Types

type ResponseCache

type ResponseCache struct {
	XMLName                     string `xml:"ResponseCache" hcl:"-"`
	policy.Policy               `hcl:",squash"`
	Type                        string          `xml:"type,attr,omitempty" hcl:"type"`
	DisplayName                 string          `xml:",omitempty" hcl:"display_name"`
	CacheKey                    *cacheKey       `xml:"CacheKey" hcl:"cache_key"`
	Scope                       string          `xml:",omitempty" hcl:"scope"`
	ExpirySettings              *expirySettings `xml:"ExpirySettings" hcl:"expiry_settings"`
	CacheResource               string          `xml:",omitempty" hcl:"cache_resource"`
	CacheLookupTimeoutInSeconds int             `xml:",omitempty" hcl:"lookup_timeout"`
	ExcludeErrorResponse        bool            `xml:",omitempty" hcl:"exclude_error_response"`
	SkipCacheLookup             string          `xml:",omitempty" hcl:"skip_cache_lookup"`
	SkipCachePopulation         string          `xml:",omitempty" hcl:"skip_cache_population"`
	UseAcceptHeader             bool            `xml:",omitempty" hcl:"use_accept_header"`
	UseResponseCacheHeaders     bool            `xml:",omitempty" hcl:"use_response_cache_headers"`
}

ResponseCache represents a <ResponseCache/> element.

Documentation: http://docs.apigee.com/api-services/reference/response-cache-policy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL