Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factory ¶
func Factory(conf model.MaskFactoryConfiguration) (model.MaskEngine, bool, error)
Factory create a mask from a yaml config
func JaccardSimilarity ¶
JaccardSimilarity calculates the Jaccard similarity between two strings.
Types ¶
type JaccardCSV ¶
type JaccardCSV struct {
// contains filtered or unexported fields
}
type MaskEngine ¶
type MaskEngine struct {
// contains filtered or unexported fields
}
func NewMask ¶
func NewMask(conf model.FindInCSVType, seed int64, seeder model.Seeder) (MaskEngine, error)
func (*MaskEngine) ExactMatch ¶
func (me *MaskEngine) ExactMatch(filename string, context []model.Dictionary) (bool, []model.Entry, error)
func (*MaskEngine) Mask ¶
func (me *MaskEngine) Mask(e model.Entry, context ...model.Dictionary) (model.Entry, error)
Mask choose one or many line's value in csv which matched with given value from json entry.
Click to show internal directories.
Click to hide internal directories.