service backend
All checks were successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful

This commit is contained in:
Stephan D
2025-11-07 18:35:26 +01:00
parent 20e8f9acc4
commit 62a6631b9a
537 changed files with 48453 additions and 0 deletions

21
api/pkg/clock/clock.go Normal file
View File

@@ -0,0 +1,21 @@
package clock
import "time"
// Clock exposes basic time operations, primarily for test overrides.
type Clock interface {
Now() time.Time
}
// System implements Clock using the system wall clock.
type System struct{}
// Now returns the current UTC time.
func (System) Now() time.Time {
return time.Now().UTC()
}
// NewSystem returns a system-backed clock instance.
func NewSystem() Clock {
return System{}
}