mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 13:36:51 +02:00
20 lines
334 B
Go
20 lines
334 B
Go
|
package stressClient
|
||
|
|
||
|
import (
|
||
|
"sync"
|
||
|
)
|
||
|
|
||
|
// The Tracer carrys tags and a waitgroup from the statements through the package life cycle
|
||
|
type Tracer struct {
|
||
|
Tags map[string]string
|
||
|
|
||
|
sync.WaitGroup
|
||
|
}
|
||
|
|
||
|
// NewTracer returns a Tracer with tags attached
|
||
|
func NewTracer(tags map[string]string) *Tracer {
|
||
|
return &Tracer{
|
||
|
Tags: tags,
|
||
|
}
|
||
|
}
|