Versions in this module Expand all Collapse all v0 v0.0.17 Aug 24, 2024 v0.0.16 Aug 23, 2024 Changes in this version + const ABA + const ADDRESS + const AGE + const BANK + const BIRTH + const BITCOIN + const CAR + const CHINAID + const CHINAPHONE + const DID + const Email + const Email2 + const ExampleBASE64 + const ExampleCHAR + const ExampleEMPTY + const ExampleREPLACE + const ExampleTAG + const IDCARD + const IP + const MACADDR + const NAME + const NULL + const NUMBER + const PASSPORT + const PASSWORD + const PHONE + const UID + const URL + const USERNAME + type DetectResult struct + ByteEnd int + ByteStart int + CnName string + EnName string + ExtInfo map[string]string + GroupName string + InfoType string + Key string + Level string + MaskText string + ResultType string + RuleID int32 + Text string + func (I *DetectResult) IsKV() bool + func (I *DetectResult) IsValue() bool + type EngineAPI interface + ApplyConfig func(conf []byte) error + ApplyConfigDefault func() error + ApplyConfigFile func(filePath string) error + Close func() + Deidentify func(inputText string) (string, []*DetectResult, error) + DeidentifyJSON func(jsonText string) (string, []*DetectResult, error) + DeidentifyJSONByResult func(jsonText string, detectResults []*DetectResult) (outStr string, retErr error) + DeidentifyMap func(inputMap map[string]string) (map[string]string, []*DetectResult, error) + Detect func(inputText string) ([]*DetectResult, error) + DetectJSON func(jsonText string) ([]*DetectResult, error) + DetectMap func(inputMap map[string]string) ([]*DetectResult, error) + DisableAllRules func() error + GetDefaultConf func() []byte + GetVersion func() string + Mask func(inputText string, methodName string) (string, error) + MaskStruct func(inObj interface{}) (interface{}, error) + NewEmptyLogProcessor func() Processor + NewLogProcessor func() Processor + RegisterMasker func(maskName string, maskFunc func(string) (string, error)) error + ShowDlpConf func() error + ShowResults func(resultArray []*DetectResult) + type Processor func(rawLog string, kvs ...interface{}) (string, []interface{}, bool)