mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
* Use buffered channels when applicable * Do not start additional goroutines for processing * Use context to stop ongoing loops
17 lines
351 B
Go
17 lines
351 B
Go
package time
|
|
|
|
import (
|
|
"context"
|
|
|
|
"source.quilibrium.com/quilibrium/monorepo/node/protobufs"
|
|
)
|
|
|
|
type TimeReel interface {
|
|
Start() error
|
|
Stop()
|
|
Insert(ctx context.Context, frame *protobufs.ClockFrame, isSync bool) error
|
|
Head() (*protobufs.ClockFrame, error)
|
|
NewFrameCh() <-chan *protobufs.ClockFrame
|
|
BadFrameCh() <-chan *protobufs.ClockFrame
|
|
}
|