rangemask

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: GPL-3.0 Imports: 4 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 configuration

Types

type MaskEngine

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

MaskEngine is a value that always mask by replacing with a scale

func NewMask

func NewMask(scale int) MaskEngine

NewMask return a MaskEngine from a value

func (MaskEngine) Mask

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

Mask return a range from a MaskEngine

Jump to

Keyboard shortcuts

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