util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KafkaBrokersEnv is the kafka brokers environment variable name
	KafkaBrokersEnv = "KAFKA_BROKERS"
	// KafkaTopicEnv is the kafka topic environment variable name
	KafkaTopicEnv = "KAFKA_TOPIC"
)

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, defaultValue string) string

GetEnv will lookup a environment variable or return the default

Types

type SaramaZapLogger

type SaramaZapLogger struct{}

SaramaZapLogger is a zap logger for sarama

func (SaramaZapLogger) Print

func (sz SaramaZapLogger) Print(v ...interface{})

Print will Print a log message to zap info

func (SaramaZapLogger) Printf

func (sz SaramaZapLogger) Printf(format string, v ...interface{})

Printf will Printf a log message to zap info

func (SaramaZapLogger) Println

func (sz SaramaZapLogger) Println(v ...interface{})

Println will Println a log message to zap info

Jump to

Keyboard shortcuts

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