Versions in this module Expand all Collapse all v1 v1.1.0 Dec 4, 2022 v1.0.0 Dec 4, 2022 Changes in this version + const AssetDebug + const DEF_CUTTER + const DEF_LIMIT_ERR + const DEF_LineBlockSize + const DEF_MAX_CALL_DEEP + const DEF_MAX_INPUT + const DEF_MAX_ITEM + const DEF_MAX_LOG_ITEM + const DEF_RESULT_SIZE + const FullVer + const PackageName + const Version + var DEF_CFG string + var DEF_MAX_LOG_INPUT int32 = 1024 + var DEF_MAX_REGEX_RULE_ID int32 = 0 + func Asset(name string) ([]byte, error) + func AssetDigest(name string) ([sha256.Size]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func AssetString(name string) (string, error) + func B2S(b []byte) string + func Digests() (map[string][sha256.Size]byte, error) + func MustAsset(name string) []byte + func MustAssetString(name string) string + func NewEngine(callerID string) (dlpheader.EngineAPI, error) + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + func S2B(s string) (b []byte) + type DIYMaskWorker struct + func (I *DIYMaskWorker) GetRuleName() string + func (I *DIYMaskWorker) Mask(in string) (string, error) + func (I *DIYMaskWorker) MaskResult(res *dlpheader.DetectResult) error + type DescribeRulesResponse struct + Crc uint32 + Rule []byte + type Engine struct + Version string + func (I *Engine) ApplyConfig(confString string) error + func (I *Engine) ApplyConfigDefault() error + func (I *Engine) ApplyConfigFile(filePath string) error + func (I *Engine) Close() + func (I *Engine) Deidentify(inputText string) (outputText string, retResults []*dlpheader.DetectResult, retErr error) + func (I *Engine) DeidentifyJSON(jsonText string) (outStr string, retResults []*dlpheader.DetectResult, retErr error) + func (I *Engine) DeidentifyJSONByResult(jsonText string, detectResults []*dlpheader.DetectResult) (outStr string, retErr error) + func (I *Engine) DeidentifyMap(inputMap map[string]string) (outMap map[string]string, retResults []*dlpheader.DetectResult, retErr error) + func (I *Engine) Detect(inputText string) (retResults []*dlpheader.DetectResult, retErr error) + func (I *Engine) DetectJSON(jsonText string) (retResults []*dlpheader.DetectResult, retErr error) + func (I *Engine) DetectMap(inputMap map[string]string) (retResults []*dlpheader.DetectResult, retErr error) + func (I *Engine) DisableAllRules() error + func (I *Engine) GetDefaultConf() string + func (I *Engine) GetVersion() string + func (I *Engine) Mask(inputText string, methodName string) (outputText string, err error) + func (I *Engine) MaskStruct(inPtr interface{}) (outPtr interface{}, retErr error) + func (I *Engine) NewDIYMaskWorker(maskName string, maskFunc func(string) (string, error)) (mask.MaskAPI, error) + func (I *Engine) NewEmptyLogProcessor() dlpheader.Processor + func (I *Engine) NewLogProcessor() dlpheader.Processor + func (I *Engine) RegisterMasker(maskName string, maskFunc func(string) (string, error)) error + func (I *Engine) ShowDlpConf() error + func (I *Engine) ShowResults(results []*dlpheader.DetectResult) + type HttpResponseBase struct + RetCode int + RetMsg string + type ResultList []*dlpheader.DetectResult + func (a ResultList) Contain(i, j int) bool + func (a ResultList) Equal(i, j int) bool + func (a ResultList) Len() int + func (a ResultList) Less(i, j int) bool + func (a ResultList) Swap(i, j int)