Documentation
¶
Index ¶
- Constants
- func WalkThroughStringFields(record any, handle HandleField) error
- type AESCensor
- type Censor
- type Codec
- type CodecName
- type Config
- type HandleField
- type HexTransformer
- type SaltyAESCensor
- type StdBase64Transformer
- type TagContent
- type Transformer
- type TransformerName
- type URLBase64Transformer
Constants ¶
View Source
const DefaultTagName = "censored"
Variables ¶
This section is empty.
Functions ¶
func WalkThroughStringFields ¶
func WalkThroughStringFields(record any, handle HandleField) error
Types ¶
type Censor ¶
type Censor struct {
Config *Config
// contains filtered or unexported fields
}
func NewDefaultCensor ¶
func (*Censor) RegisterCodec ¶
func (*Censor) RegisterTransformer ¶
func (r *Censor) RegisterTransformer(name TransformerName, transformer Transformer, enforced bool) error
type HandleField ¶
type HandleField func(field reflect.Value, fieldType reflect.StructField) error
type HexTransformer ¶
type HexTransformer struct {
Transformer
}
type SaltyAESCensor ¶
type SaltyAESCensor struct {
Codec
}
type StdBase64Transformer ¶
type StdBase64Transformer struct {
Transformer
}
type TagContent ¶
type TagContent string
func (TagContent) Get ¶
func (t TagContent) Get() (CodecName, TransformerName, error)
type Transformer ¶
type TransformerName ¶
type TransformerName string
type URLBase64Transformer ¶
type URLBase64Transformer struct {
Transformer
}
Click to show internal directories.
Click to hide internal directories.