cfg

package
v12.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: BSD-3-Clause Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FailStatus            = 400
	SuccessStatus         = 200
	ContentHTML           = "text/html; charset=utf-8"
	ContentTypeHeader     = "Content-Type"
	StatusCodeHeader      = "Status"
	QueryCacheKey         = "cache_key"
	QueryCacheDuration    = "cache_duration"
	QueryCacheStatusCode  = "cache_status_code"
	QueryCacheContentType = "cache_content_type"
	RequestCacheTimeout   = 5 * time.Second
)

The constants be used by both client and server

View Source
var MinimumCacheDuration = 2 * time.Second

MinimumCacheDuration is the minimum duration from time.Now which is allowed between cache save and cache clear

View Source
var NoCacheHeader = "X-No-Cache"

NoCacheHeader is the static header key which is set to the response when NoCache is called, used inside nethttp and fhttp Skippers.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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