state

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package state provides functions for reading and writing diff status files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteLastState

func WriteLastState(cacheDir string, state *DiffState) error

Types

type DiffState

type DiffState struct {
	Time     time.Time
	Sequence int
	Url      string
}

func FromOscGz

func FromOscGz(oscFile string) (*DiffState, error)

func FromPbf

func FromPbf(filename string, before time.Duration) (*DiffState, error)

func Parse

func Parse(f io.Reader) (*DiffState, error)

func ParseFile

func ParseFile(stateFile string) (*DiffState, error)

func ParseLastState

func ParseLastState(cacheDir string) (*DiffState, error)

func (DiffState) String

func (d DiffState) String() string

func (DiffState) Write

func (d DiffState) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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