Refactor kafka to pure Go (franz-go), fix DBC stubs, update Dockerfile

This commit is contained in:
Chris Rai
2026-01-31 00:05:47 -05:00
parent fbb820d7b3
commit b5bec57dfa
776 changed files with 18945 additions and 2052 deletions

View File

@@ -0,0 +1,34 @@
package clock
import (
"time"
)
// System returns a Clock implementation that delegate to the time package.
func System() Clock {
return &systemClock{}
}
type systemClock struct{}
var _ Clock = &systemClock{}
func (c systemClock) After(d time.Duration) <-chan time.Time {
return time.After(d)
}
func (c systemClock) NewTicker(d time.Duration) Ticker {
return &systemTicker{Ticker: *time.NewTicker(d)}
}
func (c systemClock) Now() time.Time {
return time.Now()
}
type systemTicker struct {
time.Ticker
}
func (t systemTicker) C() <-chan time.Time {
return t.Ticker.C
}