blockchain

package
v0.0.0-...-25c57ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxAllowedOffsetSecs = 70 * 60
	SimilarTimeSecs      = 5 * 60
	MaxMedianTimeRntries = 200
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IMedianTimeSource

type IMedianTimeSource interface {
	AdjustedTime() time.Time
	AddTimeSample(id string, timeVal time.Time)
	Offset() time.Duration
}

func NewMedianTime

func NewMedianTime() IMedianTimeSource

type MedianTime

type MedianTime struct {
	// contains filtered or unexported fields
}

func (*MedianTime) AddTimeSample

func (medianTime *MedianTime) AddTimeSample(sourceID string, timeVal time.Time)

func (*MedianTime) AdjustedTime

func (medianTime *MedianTime) AdjustedTime() time.Time

func (*MedianTime) Offset

func (medianTime *MedianTime) Offset() time.Duration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL