Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeyWithTime ¶
Types ¶
type TimeKey ¶
type TimeKey struct { //Stamp is the EPOCH Creation Time Stamp int64 //ID increments with duplicate Stamps ID int64 }
TimeKey is the Primary Key for Husk Indexes. It orders records by Timestamp
func (TimeKey) GetTimestamp ¶
GetTimestamp returns the creation time of the record
func (TimeKey) MarshalJSON ¶
MarshalJSON will return a Key as {stamp}`{key}
func (TimeKey) String ¶
String returns the string representation for a Key, also makes is easier to parse.
func (*TimeKey) UnmarshalJSON ¶
UnmarshalJSON will return {stamp}`{key} as a Key
Click to show internal directories.
Click to hide internal directories.