Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factory ¶
func Factory(conf model.Masking, seed int64, caches map[string]model.Cache) (model.MaskEngine, bool, error)
Create a mask from a configuration
func ParseDuration ¶
ParseDuration parse a ISO8601 into time.Duration Modified from : https://stackoverflow.com/questions/28125963/golang-parse-time-duration
func ParseInt64 ¶
Types ¶
type MaskEngine ¶
type MaskEngine struct {
// contains filtered or unexported fields
}
MaskEngine is to mask a value thanks to a duration
func NewMask ¶
func NewMask(text string) (MaskEngine, error)
NewMask create a MaskEngine with a ISO8601 duration string
func (MaskEngine) Mask ¶
func (dura 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.