Versions in this module Expand all Collapse all v1 v1.0.1 Mar 6, 2024 Changes in this version + var ClearFieldFunc = func(message protoreflect.Message, fieldDescriptor protoreflect.FieldDescriptor) error + var ClearListFunc = func(list protoreflect.List) error + var ClearMapFunc = func(valueMap protoreflect.Map, mapKey protoreflect.MapKey, _ protoreflect.Value) error + var CommonFieldsFromMapFunc = func(ext any) map[string]struct{} + var ErrInvalidRedactorArgs = errors.New("invalid args") + type FieldsFromMapFunc func(ext any) map[string]struct + type RedactFieldFunc func(message protoreflect.Message, fd protoreflect.FieldDescriptor) error + type RedactListFunc func(list protoreflect.List) error + type RedactMapFunc func(valueMap protoreflect.Map, mapKey protoreflect.MapKey, ...) error + type Redactor struct + func NewClearRedactor(extInfo *protoimpl.ExtensionInfo, opts ...RedactorOption) (*Redactor, error) + func NewRedactor(extInfo *protoimpl.ExtensionInfo, opts ...RedactorOption) (*Redactor, error) + func (r *Redactor) Redact(msg proto.Message) error + func (r *Redactor) RedactClone(msg proto.Message) (proto.Message, error) + type RedactorFuncs struct + type RedactorOption func(*Redactor) + func WithFieldsFromMapFunc(fieldsFromMapFunc FieldsFromMapFunc) RedactorOption + func WithRedactFuncs(redactFuncs ...RedactFieldFunc) RedactorOption + func WithRedactListFuncs(redactListFuncs ...RedactListFunc) RedactorOption + func WithRedactMapFuncs(redactMapFuncs ...RedactMapFunc) RedactorOption