historystorage

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

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 []Event) []int
	SearchWithConverter(prefix []Event, converter func(events []Event) []Event) []int
}

func LoadStorage

func LoadStorage(dirPath string) HistoryStorage

func New

func New(name, dirPath string) HistoryStorage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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