Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() *sequentialClock
New constructs a sequential clock.
Example ¶
package main import ( "fmt" "github.com/inklabs/rangedb/pkg/clock/provider/sequentialclock" ) func main() { // Given clock := sequentialclock.New() // When fmt.Println(clock.Now().Unix()) fmt.Println(clock.Now().Unix()) fmt.Println(clock.Now().Unix()) }
Output: 0 1 2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.