utils

package
v0.0.0-...-3909df4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSignal

func ContextWithSignal(ctx context.Context) context.Context

func GetenvInt

func GetenvInt(s string, defaultValue int64) int64

func GetenvOrFile

func GetenvOrFile(varName, fileVarName string, required bool) string

func GetenvRequired

func GetenvRequired(s string) string

func NormalizeEntityConfig

func NormalizeEntityConfig(v *viper.Viper, singular string, plural string) error

func ViperSubMap

func ViperSubMap(v *viper.Viper, key string) map[string]*viper.Viper

func ViperSubSlice

func ViperSubSlice(v *viper.Viper, key string) []*viper.Viper

Types

type IoSourceFactory

type IoSourceFactory struct {
}

func (*IoSourceFactory) CreateConsumer

func (*IoSourceFactory) CreateConsumer(config *viper.Viper, logger *zerolog.Logger) v1.Consumer

func (*IoSourceFactory) CreateProducer

func (*IoSourceFactory) CreateProducer(config *viper.Viper, logger *zerolog.Logger) v1.Producer

Jump to

Keyboard shortcuts

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