reunion: github.com/katzenpost/reunion/epochtime Index | Files | Directories

package epochtime

import "github.com/katzenpost/reunion/epochtime"

Package epochtime provides the Reunion protocol epoch timer.

Index

Package Files

clock.go

type EpochClock Uses

type EpochClock interface {
    // Now returns the current epoch, time since the start of the
    // current epoch, and time till the next epoch.
    Now() (current uint64, elapsed, till time.Duration)

    // Period returns the epoch duration.
    Period() time.Duration
}

EpochClock the interface which Reunion uses for epoch clocks.

Directories

PathSynopsis
katzenpostPackage katzenpost provides the Reunion protocol Katzenpost epoch timer.

Package epochtime imports 1 packages (graph) and is imported by 1 packages. Updated 2020-10-25. Refresh now. Tools for package owners.