naive

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Naive

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

type that implements interface HistoryStorage

func New

func New(dirPath string) *Naive

func (*Naive) Close

func (n *Naive) Close()

func (*Naive) CreateNewWorkingDir

func (n *Naive) CreateNewWorkingDir() string

func (*Naive) CreateStorage

func (n *Naive) CreateStorage()

CreateStorage(): used for initializing a directory for naive history storage called in a process of "earthquake init"

func (*Naive) GetRequiredTime

func (n *Naive) GetRequiredTime(id int) (time.Duration, error)

func (*Naive) GetStoredHistory

func (n *Naive) GetStoredHistory(id int) (*SingleTrace, error)

func (*Naive) Init

func (n *Naive) Init()

func (*Naive) IsSuccessful added in v0.1.2

func (n *Naive) IsSuccessful(id int) (bool, error)

func (*Naive) Name

func (n *Naive) Name() string

func (*Naive) NrStoredHistories

func (n *Naive) NrStoredHistories() int

func (*Naive) RecordNewTrace

func (n *Naive) RecordNewTrace(newTrace *SingleTrace)

func (*Naive) RecordResult

func (n *Naive) RecordResult(successful bool, requiredTime time.Duration) error

func (*Naive) Search

func (n *Naive) Search(prefix []Event) []int

func (*Naive) SearchWithConverter

func (n *Naive) SearchWithConverter(prefix []Event, converter func(events []Event) []Event) []int

Jump to

Keyboard shortcuts

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