configtype

package
v4.42.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MPL-2.0 Imports: 3 Imported by: 25 modules, 24 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration struct {
	// contains filtered or unexported fields
}

Duration is a wrapper around time.Duration that should be used in config when a duration type is required. We wrap the time.Duration type so that the spec can be extended in the future to support other types of durations (e.g. a duration that is specified in days).

func NewDuration

func NewDuration(d time.Duration) Duration

func (*Duration) Duration

func (d *Duration) Duration() time.Duration

func (Duration) Equal

func (d Duration) Equal(other Duration) bool

func (Duration) JSONSchema added in v4.15.0

func (Duration) JSONSchema() *jsonschema.Schema

func (*Duration) MarshalJSON

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

func (*Duration) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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