storage

package
v0.0.0-...-6c97315 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConcurrentUpdate = errors.New("concurrent update")
View Source
var ErrNotFound = errors.New("record not found")

Functions

This section is empty.

Types

type Record

type Record struct {
	ID          string
	KeyPath     int
	SharedState channels.SharedState
}

type Storage

type Storage interface {
	Get(id string) (*Record, error)
	List() ([]Record, error)
	Create(rec Record) error
	Update(id string, prev, new channels.SharedState, payment []byte) error
	ReserveKeyPath() (int, error)
	ListPayments(channelID string) ([][]byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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