mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
23 lines
410 B
Go
23 lines
410 B
Go
package data_masking
|
|
|
|
type Config struct {
|
|
Rules []*Rule `json:"rules"`
|
|
}
|
|
|
|
type Rule struct {
|
|
Match *BasicItem `json:"match"`
|
|
Mask *Mask `json:"mask"`
|
|
}
|
|
|
|
type BasicItem struct {
|
|
Type string `json:"type"`
|
|
Value string `json:"value"`
|
|
}
|
|
|
|
type Mask struct {
|
|
Type string `json:"type"`
|
|
Begin int `json:"begin"`
|
|
Length int `json:"length"`
|
|
Replace *BasicItem `json:"replace"`
|
|
}
|