Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithRequestCounter ¶
ContextWithRequestCounter adds a counter to the context if one does not already exist
func GetRequestCount ¶
GetRequestCount retrieves the current request count on the provided context. It returns 0 if the context does not have a request counter
func IncrementRequestCount ¶
IncrementRequestCount increments the request counter on the provided context if the context has one
func ResetRequestCount ¶
ResetRequestCount resets the request counter on the provided context if the context has one
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.