Documentation ¶
Overview ¶
Package ptypes contains types that are commonplace in test plan parameters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration wraps a time.Duration and provides JSON marshal logic.
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalJSON ¶
type IPNet ¶ added in v0.2.6
func (IPNet) MarshalJSON ¶ added in v0.2.6
func (*IPNet) UnmarshalJSON ¶ added in v0.2.6
type Rate ¶
Rate is a param that's parsed as "quantity/interval", where `quantity` is a float and `interval` is a string parsable by time.ParseDuration, e.g. "1s".
You can omit the numeric component of the interval to default to 1, e.g. "100/s" is the same as "100/1s".
Examples of valid Rate strings include: "100/s", "0.5/m", "500/5m".
func (Rate) MarshalJSON ¶
func (*Rate) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.