mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
19 lines
256 B
Go
19 lines
256 B
Go
// 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)
|