redact

package
v0.0.0-...-5720ada Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalSensitiveSubstrings = []string{
	"authorization",
	"cookie",
	"token",
	"password",
	"secret",
}

Functions

func AddSensitiveSubstring

func AddSensitiveSubstring(substrings ...string)

func Headers

func Headers(headers http.Header) map[string]string

func IsSensitive

func IsSensitive(key string) bool

func Map

func Map(data map[string]interface{}) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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