Documentation ¶ Index ¶ func Clamp(o *Opt, min, max time.Duration) func(*Opt) type Hook type Opt func New(m meta.Data, h ...Hook) (o *Opt) func (o *Opt) FromString(s string) (e error) func (o *Opt) Meta() meta.Metadata func (o *Opt) RunHooks() (e error) func (o *Opt) String() (s string) func (o *Opt) ToOption() opts.Option func (o *Opt) Type() meta.Type func (o *Opt) Value() (c opts.Concrete) 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() opts.Option func (*Opt) Type ¶ func (o *Opt) Type() meta.Type func (*Opt) Value ¶ func (o *Opt) Value() (c opts.Concrete) Source Files ¶ View all Source files log.go spec.go Click to show internal directories. Click to hide internal directories.