masker

package module
v0.0.0-...-c68af65 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 3 Imported by: 0

README

Mask Writer is Sensitive value writer for Masking sensitive value in log

Mask Writer is a confidential value writer to mask confidential values in logs, etc. It implements io.Writer and can be passed to anything that uses io.

However, it can only be used for structured logs as it is designed to handle JSON.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaskWriter

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

func NewMaskWriter

func NewMaskWriter(w io.Writer, keys []string, mask string) MaskWriter

func (*MaskWriter) Write

func (mw *MaskWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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