Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timestamp ¶
type Timestamp = C.z_timestamp_t
Timestamp is a data structure representing a unique timestamp.
func GenerateTimestamp ¶
func GenerateTimestamp() *Timestamp
GenerateTimestamp creates a new timestamp with current time but with 0x00 as clock_id. WARN: Don't use it, this is a temporary workaround. @TODO: remove this when we're sure Data always come with a Timestamp.
func (*Timestamp) Before ¶
Before reports whether the Timestamp ts was created before ots. This function can be used for sorting.
func (*Timestamp) ClockID ¶
ClockID returns the unique identifier of the clock that generated this timestamp.
Click to show internal directories.
Click to hide internal directories.