Documentation ¶
Overview ¶
Package whence contains some tidbits about time measurements and references
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Point ¶
type Point struct { Whence time.Time `json:"whence"` //datetime when this point exists Delta time.Duration `json:"delta"` //delta from some reference to this time. Type Reference `json:"reference"` //internal reference for type }
Point is a point in time, with optional information from a refernce
type Reference ¶
type Reference string
Reference is a type of clock reference
const ( //LOCALTIME is a reference from monotonicly increasing system clock LOCALTIME Reference = "localtime" //NTPClient is a sample reference w.r.t a NTP server NTPClient = "ntp" )
func (Reference) MarshalJSON ¶
MarshalJSON conforms to json.Marshaler interface
func (*Reference) UnmarshalJSON ¶
UnmarshalJSON conforms to json.Marshaler interface
Click to show internal directories.
Click to hide internal directories.