Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Updates is a channel on which one can receive updates to the Quota Updates = make(chan *Quota, 100) )
Functions ¶
func Track ¶
Track updates the bandwith quota information based on the XBQ header in the given response. The header is expected to follow this format:
<used>/<allowed>/<asof>
<used> is the string representation of a 64-bit unsigned integer <allowed> is the string representation of a 64-bit unsigned integer <asof> is the 64-bit signed integer representing seconds since a custom epoch (00:00:00 01/01/2016 UTC).
Types ¶
Click to show internal directories.
Click to hide internal directories.