modulepackage
0.0.0-20170619190023-f3a7b8ffff47
Repository: https://github.com/mailgun/timetools.git
Documentation: pkg.go.dev
# README
This repo is deprecated, functionality has moved to http://github.com/mailgun/holster (See Clock)
timetools
Go library with various time utilities used at Mailgun.
# Functions
AdvanceTimeBy simulates advancing time by some time.Duration d.
No description provided by the author
SleepProvider returns a TimeProvider that has good fakes for time.Sleep and time.After.
# Structs
FreezedTime is manually controlled time for use in tests.
RealTime is a real clock time, used in production.
# Interfaces
TimeProvider is an interface we use to mock time in tests.
# Type aliases
We use RFC2822 format for timestamps everywhere ('Thu, 13 Oct 2011 18:02:00 GMT'), but by default Go's JSON package uses another format when decoding/encoding timestamps.