Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultSyncPeriod = 4*time.Minute + 30*time.Second LimitBytes = 200 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Benchmark ¶
type Benchmark struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new Benchmark based on the provided Config. If the Config contains invalid values, then an error is returned.
func (*Benchmark) Reconfigure ¶
Reconfigure reconfigures an existing Benchmark instnace.
type Config ¶
type Config struct {
ToAuthorize *url.URL
ToUpload *url.URL
ToCAFile string
ToToken string
ToTokenFile string
Interval time.Duration
MetricsFile string
Workers int
Logger log.Logger
}
Config defines the parameters that can be used to configure a worker. The only required field is `From`.
Click to show internal directories.
Click to hide internal directories.