status

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package status governs the possible Cache Lookup Status values

Index

Constants

View Source
const (
	// LookupStatusHit indicates a full cache hit on lookup
	LookupStatusHit = LookupStatus(iota)
	// LookupStatusPartialHit indicates a partial cache hit (key exists and has some data
	// for requested time range, but not all) on lookup
	LookupStatusPartialHit
	// LookupStatusRangeMiss indicates a range miss (key exists but no data for requested time range) on lookup
	LookupStatusRangeMiss
	// LookupStatusKeyMiss indicates a full key miss (cache key does not exist) on lookup
	LookupStatusKeyMiss
	// LookupStatusRevalidated indicates the cached object exceeded the freshness lifetime but
	// was revalidated against the upstream server and is treated as a cache hit
	LookupStatusRevalidated
	// LookupStatusPurge indicates the cache key, if it existed, was purged as directed
	// in upstream response or down stream request http headers
	LookupStatusPurge
	// LookupStatusProxyError indicates that a proxy error occurred retrieving a cacheable dataset
	// in upstream response or down stream request http headers
	LookupStatusProxyError
	// LookupStatusProxyOnly indicates that the request was fully proxied to the origin without using the cache
	LookupStatusProxyOnly
	// LookupStatusNegativeCacheHit indicates that the request was served as a hit from the Negative Response Cache
	LookupStatusNegativeCacheHit
	// LookupStatusError indicates that there was an error looking up the object in the cache
	LookupStatusError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LookupStatus

type LookupStatus int

LookupStatus defines the possible status of a cache lookup

func (LookupStatus) String

func (s LookupStatus) String() string

Jump to

Keyboard shortcuts

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