Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factory ¶
func Factory(conf model.MaskFactoryConfiguration) (model.MaskEngine, bool, error)
Create a mask from a configuration
Types ¶
type MaskEngine ¶
type MaskEngine struct { Min time.Duration Max time.Duration // contains filtered or unexported fields }
MaskEngine is to mask a value thanks to 2 durations
func (MaskEngine) Mask ¶
func (me MaskEngine) Mask(e model.Entry, context ...model.Dictionary) (model.Entry, error)
Mask masks a time value with a duration
Click to show internal directories.
Click to hide internal directories.