Documentation ¶
Index ¶
- type MongoDB
- func (this *MongoDB) Close()
- func (this *MongoDB) CreateNewWorkingDir() string
- func (this *MongoDB) CreateStorage()
- func (this *MongoDB) GetRequiredTime(id int) (time.Duration, error)
- func (this *MongoDB) GetStoredHistory(id int) (*SingleTrace, error)
- func (this *MongoDB) Init()
- func (this *MongoDB) IsSucceed(id int) (bool, error)
- func (this *MongoDB) Name() string
- func (this *MongoDB) NrStoredHistories() int
- func (this *MongoDB) RecordNewTrace(newTrace *SingleTrace)
- func (this *MongoDB) RecordResult(succeed bool, requiredTime time.Duration) error
- func (this *MongoDB) Search(prefix []Event) []int
- func (this *MongoDB) SearchWithConverter(prefix []Event, converter func(events []Event) []Event) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct { Naive *naive.Naive Session *mgo.Session DB *mgo.Database // contains filtered or unexported fields }
type that implements interface HistoryStorage
func (*MongoDB) CreateNewWorkingDir ¶
func (*MongoDB) CreateStorage ¶
func (this *MongoDB) CreateStorage()
func (*MongoDB) GetRequiredTime ¶
func (*MongoDB) GetStoredHistory ¶
func (*MongoDB) NrStoredHistories ¶
func (*MongoDB) RecordNewTrace ¶
func (this *MongoDB) RecordNewTrace(newTrace *SingleTrace)
func (*MongoDB) RecordResult ¶
func (*MongoDB) SearchWithConverter ¶
Click to show internal directories.
Click to hide internal directories.