Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAllMiddlewares ¶
func ApplyAllMiddlewares( handler http.Handler, serviceName string, logger *zerolog.Logger, registry prometheus.Registerer, statistics *Statistics, ) http.Handler
func GetCacheState ¶
func SetCacheState ¶
Types ¶
type RequestState ¶
type RequestState struct {
// contains filtered or unexported fields
}
type Statistics ¶ added in v0.0.12
type Statistics struct {
CacheHits atomic.Uint64
CacheMisses atomic.Uint64
UnCacheable atomic.Uint64
Revalidated atomic.Uint64
BytesServed atomic.Uint64
BytesDownloaded atomic.Uint64
}
func LoadSavedStatistics ¶ added in v0.0.12
func LoadSavedStatistics(path string, logger *zerolog.Logger) (*Statistics, error)
Click to show internal directories.
Click to hide internal directories.