Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Detect sooner when a skin changes UserFreshTTL = 12 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
func MetricTextureFetchError ¶
func MetricTextureFetchError()
Types ¶
type Status ¶
type Status uint8
Status is for recording the API response status for a specific request It does not correspond to the data validity - simple a record of how the API responded
const ( StatusUnSet Status = iota StatusOk StatusErrorGeneric StatusErrorUnknownUser StatusErrorRateLimit )
Todo: Username vs. UUID logic??
func NewStatusFromError ¶
Todo: remove the `query` here as it should already be tagged on the logger NOTE: This will record metrics based on the given error
func (Status) DurationUUID ¶
func (Status) DurationUser ¶
Click to show internal directories.
Click to hide internal directories.