 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- type Hook
- type Opt
- func (x *Opt) AddHooks(hook ...Hook)
- func (x *Opt) GetMetadata() *meta.Data
- func (x *Opt) LoadInput(input string) (o opt.Option, e error)
- func (x *Opt) MarshalJSON() (b []byte, e error)
- func (x *Opt) Name() string
- func (x *Opt) ReadInput(input string) (o opt.Option, e error)
- func (x *Opt) Set(d time.Duration) (e error)
- func (x *Opt) SetHooks(hook ...Hook)
- func (x *Opt) SetName(name string)
- func (x *Opt) String() string
- func (x *Opt) Type() interface{}
- func (x *Opt) UnmarshalJSON(data []byte) (e error)
- func (x *Opt) V() time.Duration
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)
    Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt struct {
	meta.Data
	Min, Max time.Duration
	Value    *uberatomic.Duration
	Def      time.Duration
	// contains filtered or unexported fields
}
    Opt stores an time.Duration configuration value
func (*Opt) GetMetadata ¶
GetMetadata returns the metadata of the opt type
func (*Opt) LoadInput ¶
LoadInput sets the value from a string (this is the same as the above but differs for Strings)
func (*Opt) MarshalJSON ¶
MarshalJSON returns the json representation
func (*Opt) Type ¶
func (x *Opt) Type() interface{}
Type returns the receiver wrapped in an interface for identifying its type
func (*Opt) UnmarshalJSON ¶
UnmarshalJSON decodes a JSON representation
 Click to show internal directories. 
   Click to hide internal directories.