bitcointime

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var MaxMedianTimeRetries = 200

Functions

This section is empty.

Types

type MedianTime

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

func NewMedianTime

func NewMedianTime() *MedianTime

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