status

package
v1.1.0-beta6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	// LookupStatusProxyHit indicates that the request joined an existing proxy download of the same object
	LookupStatusProxyHit
)

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