go-waku/waku/v2/timesource/timesource.go

13 lines
140 B
Go
Raw Normal View History

2022-12-09 03:08:04 +00:00
package timesource
import (
"context"
"time"
)
2022-12-09 03:08:04 +00:00
type Timesource interface {
Now() time.Time
Start(ctx context.Context) error
2023-01-06 22:37:57 +00:00
Stop()
2022-12-09 03:08:04 +00:00
}