state

package
v0.0.0-...-85720d3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2014 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) *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