core

package
v1.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMaskCore

func NewMaskCore(splitLen int, rules MaskRules, lv zapcore.LevelEnabler, enc zapcore.Encoder, out zapcore.WriteSyncer) zapcore.Core

Types

type MaskCore

type MaskCore struct {
	zapcore.LevelEnabler
	// contains filtered or unexported fields
}

func (*MaskCore) Check

func (*MaskCore) Sync

func (c *MaskCore) Sync() error

func (*MaskCore) With

func (c *MaskCore) With(fields []zapcore.Field) zapcore.Core

func (*MaskCore) Write

func (c *MaskCore) Write(ent zapcore.Entry, fields []zapcore.Field) error

type MaskRule

type MaskRule struct {
	Rule    string `config:"rule" json:"rule"`
	Replace string `config:"replace" json:"replace"`
}

type MaskRules

type MaskRules []MaskRule

type Masker

type Masker struct {
	// contains filtered or unexported fields
}

type Maskers

type Maskers []Masker

func NewMaskers

func NewMaskers(rules MaskRules) *Maskers

func (*Maskers) Mask

func (m *Maskers) Mask(data []byte) []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL