state

package
v0.0.0-...-901b40b Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2015 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 int32
	Url      string
}

func FromPbf

func FromPbf(pbfFile *pbf.Pbf, before time.Duration) *DiffState

func Parse

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

func ParseFile

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

func ParseFromOsc

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

func ParseLastState

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

func (DiffState) String

func (d DiffState) String() string

func (DiffState) WriteToFile

func (d DiffState) WriteToFile(file string) error

Jump to

Keyboard shortcuts

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