micro/sync/time/time.go

19 lines
256 B
Go
Raw Normal View History

2019-05-31 02:43:23 +03:00
// Package time provides clock synchronization
package time
import (
"context"
"time"
)
// Time returns synchronized time
type Time interface {
Now() (time.Time, error)
}
type Options struct {
Context context.Context
}
type Option func(o *Options)