- delete api/requests.http and ARCHITECTURE.md (coordinator content) - rewrite README.md and .env.example for the userservice - drop dead RunPeriodic (reaper machinery userservice has no use for) - fix .gitignore/.dockerignore/.golangci.yml module + artifact names - degeneralize stale copied comments that said "coordinator"
14 lines
428 B
Go
14 lines
428 B
Go
// Clock: the real implementation of the usecase.Clock port. It lives out here
|
|
// because reading the system clock is infrastructure; tests substitute a fixed one.
|
|
package infra
|
|
|
|
import "time"
|
|
|
|
type System struct{}
|
|
|
|
func NewClock() System { return System{} }
|
|
|
|
// Now returns UTC so every timestamp this service writes is comparable
|
|
// regardless of the host's timezone.
|
|
func (System) Now() time.Time { return time.Now().UTC() }
|