Debian Codegraph @

stress/v2/statement/exec.go

raw symbols SCIP
1 package statement
2
3 import (
4 "time"
5
6 "github.com/influxdata/influxdb/stress/v2/stress_client"
7 )
8
9 // ExecStatement run outside scripts. This functionality is not built out
10 // TODO: Wire up!
11 type ExecStatement struct {
12 StatementID string
13 Script string
14
15 runtime time.Duration
16 }
17
18 // SetID statisfies the Statement Interface
19 func (i *ExecStatement) SetID(s string) {
20 i.StatementID = s
21 }
22
23 // Run statisfies the Statement Interface
24 func (i *ExecStatement) Run(s *stressClient.StressTest) {
25 runtime := time.Now()
26 i.runtime = time.Since(runtime)
27 }
28
29 // Report statisfies the Statement Interface
30 func (i *ExecStatement) Report(s *stressClient.StressTest) string {
31 return ""
32 }