randdura

package
v1.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

Create a mask from a configuration

func Func added in v1.15.0

func Func(seed int64, seedField string) interface{}

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, seeder model.Seeder) (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL