Registry / utility / lightningnetwork-lnd-clock

lightningnetwork-lnd-clock

JSON →
library1.1.1gogounverified

A clock interface and mock for testing time-dependent code in LND.

go get github.com/lightningnetwork/lnd/clock
INSTALL
IMPORT
SIG · LIGHTNINGNETWORK-L
L
lightningnetwork-lnd-clock
utilitygov1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

clock
github.com/lightningnetwork/lnd/clock

Use the default clock to get the current time.

package main import ( "fmt" "github.com/lightningnetwork/lnd/clock" ) func main() { c := clock.NewDefaultClock() fmt.Println(c.Now()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lightningnetwork-lnd-clock — go get lightningnetwork-lnd-clock · libregistry