mirror of
https://github.com/nikdoof/vsphere-influxdb-go.git
synced 2025-12-19 13:39:21 +00:00
add vendoring with go dep
This commit is contained in:
32
vendor/github.com/influxdata/influxdb/stress/v2/statement/exec.go
generated
vendored
Normal file
32
vendor/github.com/influxdata/influxdb/stress/v2/statement/exec.go
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
package statement
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
// ExecStatement run outside scripts. This functionality is not built out
|
||||
// TODO: Wire up!
|
||||
type ExecStatement struct {
|
||||
StatementID string
|
||||
Script string
|
||||
|
||||
runtime time.Duration
|
||||
}
|
||||
|
||||
// SetID statisfies the Statement Interface
|
||||
func (i *ExecStatement) SetID(s string) {
|
||||
i.StatementID = s
|
||||
}
|
||||
|
||||
// Run statisfies the Statement Interface
|
||||
func (i *ExecStatement) Run(s *stressClient.StressTest) {
|
||||
runtime := time.Now()
|
||||
i.runtime = time.Since(runtime)
|
||||
}
|
||||
|
||||
// Report statisfies the Statement Interface
|
||||
func (i *ExecStatement) Report(s *stressClient.StressTest) string {
|
||||
return ""
|
||||
}
|
||||
Reference in New Issue
Block a user