package
Version:
v0.0.0-...-f7f8870
Opens a new window with list of versions in this module.
Published: Apr 26, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Label is generated by the Simple redactor
Default is the default redacting logger.Decorator
Decorator returns a decorator scans log arguments for those that implement Interface
and, when found, invokes Redacted to obtain a replacement value.
type Func func() interface{}
Func is a functional adapter for Interface
func (f Func) Redacted() interface{}
Redacted implements Interface
type Interface interface {
Redacted() interface{}
}
Interface is implemented by types containing possibly sensitive information
that should not appear in a log stream.
Blackout generates a redactor that replaces each char of the given string with 'x'
Simple impements Interface
func (x Simple) Redacted() interface{}
Redacted returns the contents of Label
Source Files
¶
Click to show internal directories.
Click to hide internal directories.