Documentation ¶
Index ¶
Constants ¶
View Source
const ( Hour = 3600 Day = 24 * Hour MaxBlocks = 12 HeaderSize = 19 MaxPoints = 2000000 MaxOldBlocks = 252 )
Variables ¶
This section is empty.
Functions ¶
func BlockID ¶
BlockID returns an UTC timestamp at the head of the even hour based on the given timestamp
func MilliToSeconds ¶
MilliToSeconds convert timestamp in milliseconds to timestamp in seconds. An error is raised if the given timestamp is greater than 13 numbers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.