Documentation ¶
Index ¶
- Variables
- type Hook
- type Opt
- func (x *Opt) AddHooks(hook ...Hook)
- func (x *Opt) Bytes() []byte
- func (x *Opt) Empty() bool
- 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(s string) (e error)
- func (x *Opt) SetBytes(s []byte) (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() string
- func (x *Opt) Zero()
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 Value *atomic.Value Def string // contains filtered or unexported fields }
Opt stores a string configuration value
func (*Opt) Bytes ¶
Bytes returns the raw bytes in the underlying storage note that this returns a copy because anything done to the slice affects all accesses afterwards, thus there is also a zero function todo: make an option for the byte buffer to be MMU fenced to prevent
elevated privilege processes from accessing this memory.
func (*Opt) GetMetadata ¶
GetMetadata returns the metadata of the opt type
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.