Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New constructs a seeded clock.
Example (WithSeed) ¶
package main import ( "fmt" "time" "github.com/inklabs/rangedb/pkg/clock/provider/seededclock" ) func main() { // Given clock := seededclock.New( time.Unix(1576828800, 0), time.Unix(1579507200, 0), ) // When fmt.Println(clock.Now().Unix()) fmt.Println(clock.Now().Unix()) }
Output: 1576828800 1579507200
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.