github.com/mailgun/holster/v4@v4.20.0/clock/provider.go (about)

     1  //go:build !holster_test_mode
     2  
     3  package clock
     4  
     5  var (
     6  	provider Clock = realtime
     7  )
     8  
     9  func setProvider(p Clock) {
    10  	provider = p
    11  }
    12  
    13  func getProvider() Clock {
    14  	return provider
    15  }