core

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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