Documentation ¶
Overview ¶
Package request provides functionality for handling HTTP Requests including the insertion of configuration options into the request
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resources ¶
type Resources struct { OriginConfig *config.OriginConfig PathConfig *config.PathConfig CacheConfig *config.CachingConfig NoLock bool CacheClient cache.Cache OriginClient origins.Client AlternateCacheTTL time.Duration TimeRangeQuery *timeseries.TimeRangeQuery }
Resources is a collection of resources a Trickster request would need to fulfill the client request This is stored in the client request's context for use by request handers.
func GetResources ¶
GetResources will return a casted Resource object from the HTTP Request's context
func NewResources ¶
func NewResources(oc *config.OriginConfig, pc *config.PathConfig, cc *config.CachingConfig, c cache.Cache, client origins.Client) *Resources
NewResources returns a new Resources collection based on the provided inputs
Click to show internal directories.
Click to hide internal directories.