randomdecimal

package
v1.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

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)

Factory create a mask from a yaml config

Types

type MaskEngine

type MaskEngine struct {
	// contains filtered or unexported fields
}

MaskEngine is a type to mask with a random float

func NewMask

func NewMask(min float64, max float64, precision int, seed int64) MaskEngine

NewMask create a MaskEngine with a seed

func (MaskEngine) Mask

func (me MaskEngine) Mask(e model.Entry, context ...model.Dictionary) (model.Entry, error)

Mask choose a mask int randomly within boundary

Jump to

Keyboard shortcuts

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