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
Click to show internal directories.
Click to hide internal directories.