Categorygithub.com/lightningnetwork/lnd/clock
modulepackage
1.1.1
Repository: https://github.com/lightningnetwork/lnd.git
Documentation: pkg.go.dev

# Functions

NewDefaultClock constructs a new DefaultClock.
NewTestClock returns a new test clock.
NewTestClockWithTickSignal will create a new test clock with an added channel which will be used to signal when a new ticker is registered.

# Structs

DefaultClock implements Clock interface by simply calling the appropriate time functions.
TestClock can be used in tests to mock time.

# Interfaces

Clock is an interface that provides a time functions for LND packages.