fill

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(source, dest string) error

All() is a convenience function when you need to fill all of the given whisper file paths rather than a specific time range. * source - path to source Whisper file * dest - path to destination Whisper file

func Files

func Files(source, dest string, startTime int) error

Files() will fill data from src into dst without overwriting data currently in dst, and always copying the highest resulution data no matter what time ranges.

  • source - path to the Whisper file
  • dest - path to the Whisper file
  • startTime - Unix time such as time.Now().Unix(). We fill from this time walking backwards to the begining of the retentions.

func OpenWSP

func OpenWSP(srcWsp, dstWsp *whisper.Whisper, startTime int) error

OpenWSP() runs the fill operation on two whisper.Whisper objects that are already open.

  • srcWsp - source *whisper.Whisper object
  • dstWsp - destination *whisper,Whisper object
  • startTime - Unix time such as int(time.Now().Unix()). We fill from this time walking backwards to the beginning.

This code heavily inspired by https://github.com/jssjr/carbonate and matches its behavior exactly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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