duration

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Unlicense Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp added in v0.1.20

func Clamp(o *Opt, min, max time.Duration) func(*Opt)

Types

type Hook

type Hook func(*Opt)

type Opt

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

func New

func New(m meta.Data, h ...Hook) (o *Opt)

func (*Opt) FromString added in v0.1.18

func (o *Opt) FromString(s string) (e error)

func (*Opt) Meta added in v0.1.19

func (o *Opt) Meta() meta.Metadata

func (*Opt) RunHooks added in v0.1.19

func (o *Opt) RunHooks() (e error)

func (*Opt) String

func (o *Opt) String() (s string)

func (*Opt) ToOption added in v0.1.19

func (o *Opt) ToOption() config.Option

func (*Opt) Type

func (o *Opt) Type() meta.Type

func (*Opt) Value

func (o *Opt) Value() (c config.Concrete)

Jump to

Keyboard shortcuts

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