path

package
v0.0.0-...-34de315 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(old []types.Hash, new []types.Hash) ([]types.Hash, []types.Hash)

Diff gives us the deltas between an old and a new path of headers.

Types

type State

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

State represents the state of the currently followed path.

func (*State) Current

func (st *State) Current() []types.Hash

Current returns the current path.

func (*State) Set

func (st *State) Set(path []types.Hash) ([]types.Hash, []types.Hash)

Set sets the path to be followed and returns the deltas between old and new.

Jump to

Keyboard shortcuts

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