historystorage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2016 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

View Source
const (
	// TODO: we really need to eliminate hard-coded params (config can be yaml)
	StorageTOMLConfigPath string = "config.toml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryStorage

type HistoryStorage interface {
	CreateStorage()

	Init()
	Close()
	Name() string

	CreateNewWorkingDir() string
	RecordNewTrace(newTrace *SingleTrace)
	RecordResult(successful bool, requiredTime time.Duration) error

	NrStoredHistories() int
	GetStoredHistory(id int) (*SingleTrace, error)

	IsSuccessful(id int) (bool, error)
	GetRequiredTime(id int) (time.Duration, error)

	Search(prefix []Action) []int
	SearchWithConverter(prefix []Action, converter func(actions []Action) []Action) []int
}

func LoadStorage

func LoadStorage(dirPath string) HistoryStorage

func New

func New(name, dirPath string) (HistoryStorage, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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