util

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VerboseBool bool

Functions

func ExitOnErr

func ExitOnErr(err error)

func NewConfig

func NewConfig(user, pw, apiKey string) (*sarama.Config, error)

func PopulateConfig

func PopulateConfig(config *sarama.Config, user, pw, apiKey string) error

func RequiredEnvVar

func RequiredEnvVar(name, defaultVal string) string

RequiredEnvVar gets an env var value. If a default value is not supplied and the env var is not defined, a fatal error is displayed.

func TlsConfig

func TlsConfig(certFile, keyFile string) (*tls.Config, error)

func Verbose

func Verbose(msg string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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