Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 NewMask ¶
func NewMask(minString, maxString string, seed int64) (MaskEngine, error)
NewMask create a MaskEngine with 2 ISO8601 duration strings
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.