gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/sync/time/time.go (about) 1 // Package time provides clock synchronization 2 package time 3 4 import ( 5 "context" 6 "time" 7 ) 8 9 // Time returns synchronized time 10 type Time interface { 11 Now() (time.Time, error) 12 } 13 14 type Options struct { 15 Context context.Context 16 } 17 18 type Option func(o *Options)