Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteSize ¶
type ByteSize uint64
ByteSize is an uint64 with unmarshaling from human readable string. It doesn't support the default & validate tag 😰.
func (*ByteSize) UnmarshalJSON ¶
func (*ByteSize) UnmarshalYAML ¶
type Duration ¶
func ParseDuration ¶
ParseDuration parses a string format of the duration
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON handles a string representation of time.Duration. e.g., 3s, 2m
func (*Duration) UnmarshalYAML ¶
UnmarshalYAML unmarshals a string node as time.Duration
Click to show internal directories.
Click to hide internal directories.