Extract Grammaratur, Dregarnuhr, Geduldh, Mestionora, Ordoschnellic, Schutzaria, Kunstzeal and Seheweit behind compatible application contracts. Include accumulated editor resilience, navigation and theme UX, remote CLI, storage/schema and DR groundwork, tests and design/operations documentation. Verified: uncached full Go suite; go vet ./...; race tests for all eight components; 11 targeted Chromium tests; Node suites; 19 Python CLI tests; reproducible editor build. No push, release tag or deployment in this checkpoint.
21 lines
464 B
Go
21 lines
464 B
Go
package dregarnuhr
|
|
|
|
import "time"
|
|
|
|
type Timer interface {
|
|
C() <-chan time.Time
|
|
Stop() bool
|
|
}
|
|
type Clock interface {
|
|
Now() time.Time
|
|
NewTimer(time.Duration) Timer
|
|
}
|
|
type SystemClock struct{}
|
|
|
|
func (SystemClock) Now() time.Time { return time.Now() }
|
|
func (SystemClock) NewTimer(d time.Duration) Timer { return systemTimer{time.NewTimer(d)} }
|
|
|
|
type systemTimer struct{ *time.Timer }
|
|
|
|
func (t systemTimer) C() <-chan time.Time { return t.Timer.C }
|