go-micro: github.com/micro/go-micro/sync/time Index | Files | Directories

package time

import "github.com/micro/go-micro/sync/time"

Package time provides clock synchronization

Index

Package Files

time.go

type Option Uses

type Option func(o *Options)

type Options Uses

type Options struct {
    Context context.Context
}

type Time Uses

type Time interface {
    Now() (time.Time, error)
}

Time returns synchronized time

Directories

PathSynopsis
localPackage local provides a local clock
ntpPackage ntp provides ntp synchronized time

Package time imports 2 packages (graph) and is imported by 17 packages. Updated 2020-02-05. Refresh now. Tools for package owners.