mirror of
https://github.com/muun/recovery.git
synced 2025-11-12 06:50:18 -05:00
Release v0.3.0
This commit is contained in:
16
vendor/github.com/lightningnetwork/lnd/clock/interface.go
generated
vendored
Normal file
16
vendor/github.com/lightningnetwork/lnd/clock/interface.go
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
package clock
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Clock is an interface that provides a time functions for LND packages.
|
||||
// This is useful during testing when a concrete time reference is needed.
|
||||
type Clock interface {
|
||||
// Now returns the current local time (as defined by the Clock).
|
||||
Now() time.Time
|
||||
|
||||
// TickAfter returns a channel that will receive a tick after the specified
|
||||
// duration has passed.
|
||||
TickAfter(duration time.Duration) <-chan time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user