api

package
v0.0.0-...-6e00f06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration time.Duration

Duration is a time.Duration that implements json.Unmarshal and json.Marshal.

func (*Duration) MarshalJSON

func (d *Duration) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Unmarshaller

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaller

type Test

type Test struct {
	ID     int64  `json:"id"`
	Cycles uint64 `json:"cycles"`
	// How many writes an individual worker does. This value changes depending
	// on the worker.
	WriteCycles uint64    `json:"write_cycles"`
	Delay       Duration  `json:"delay"`
	Timeout     Duration  `json:"timeout"`
	StartTime   time.Time `json:"start_time"`
}

Test is used to decode the body from a request.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL