Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortingField ¶
type SortingField string
SortingField is a type that represents the field to sort the cache items by.
const ( SortByKey SortingField = "Key" // Sort by the key of the cache item SortByValue SortingField = "Value" // Sort by the value of the cache item SortByLastAccess SortingField = "LastAccess" // Sort by the last access time of the cache item SortByAccessCount SortingField = "AccessCount" // Sort by the number of times the cache item has been accessed SortByExpiration SortingField = "Expiration" // Sort by the expiration duration of the cache item )
Constants for the different fields that the cache items can be sorted by.
func (SortingField) String ¶
func (f SortingField) String() string
String returns the string representation of the SortingField.
type Stat ¶ added in v0.0.4
type Stat string
Stat is a type that represents a different stat values that can be collected by the stats collector.
const ( // StatIncr represent a stat that should be incremented StatIncr Stat = "incr" // StatDecr represent a stat that should be decremented StatDecr Stat = "decr" // StatTiming represent a stat that represents the time it takes for an event to occur StatTiming Stat = "timing" // StatGauge represent a stat that represents the current value of a statistic StatGauge Stat = "gauge" // StatHistogram represent a stat that represents the statistical distribution of a set of values StatHistogram Stat = "histogram" )
Click to show internal directories.
Click to hide internal directories.