helpers

package
v0.0.0-...-81a4f0c Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHTTPClient

func CreateHTTPClient(tlsCerts *models.TLSCerts) (*http.Client, error)

func FNVHash

func FNVHash(key string) uint32

func GenerateGUID

func GenerateGUID(logger lager.Logger) (string, error)

func InitLoggerFromConfig

func InitLoggerFromConfig(conf *LoggingConfig, name string) lager.Logger

func NewRedactingWriterWithURLCredSink

func NewRedactingWriterWithURLCredSink(writer io.Writer, minLogLevel lager.LogLevel, keyPatterns []string, valuePatterns []string) (lager.Sink, error)

Types

type JSONRedacterWithURLCred

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

func NewJSONRedacterWithURLCred

func NewJSONRedacterWithURLCred(keyPatterns []string, valuePatterns []string) (*JSONRedacterWithURLCred, error)

func (JSONRedacterWithURLCred) Redact

func (r JSONRedacterWithURLCred) Redact(data []byte) []byte

type LoggingConfig

type LoggingConfig struct {
	Level string `yaml:"level"`
}

type LoggregatorGRPCLogger

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

func NewLoggregatorGRPCLogger

func NewLoggregatorGRPCLogger(logger lager.Logger) *LoggregatorGRPCLogger

func (*LoggregatorGRPCLogger) Panicf

func (l *LoggregatorGRPCLogger) Panicf(message string, data ...interface{})

func (*LoggregatorGRPCLogger) Printf

func (l *LoggregatorGRPCLogger) Printf(message string, data ...interface{})

type TimeLogFormat

type TimeLogFormat struct {
	lager.LogFormat
	LogTime string `json:"log_time"`
}

func NewTimeLogFormat

func NewTimeLogFormat(log lager.LogFormat) TimeLogFormat

func (TimeLogFormat) ToJSON

func (tlf TimeLogFormat) ToJSON() []byte

Jump to

Keyboard shortcuts

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