config

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapServers

func BootstrapServers() string

func ConfigurationFile

func ConfigurationFile() string

func GraylogServer

func GraylogServer() string

func GroupID

func GroupID() string

func HistoryTopic

func HistoryTopic() string

func LogLevel

func LogLevel() log.Level

func MetricsAddr

func MetricsAddr() string

func ScheduleGraceInterval

func ScheduleGraceInterval() int

func SchedulesTopics

func SchedulesTopics() []string

func ServerAddr

func ServerAddr() string

func SessionTimeout

func SessionTimeout() int

func SinceDelta

func SinceDelta() int

Types

type File

type File struct {
	KafkaCommonConfiguration   confluent.ConfigMap `yaml:"kafka.common.configuration,omitempty"`
	KafkaProducerConfiguration confluent.ConfigMap `yaml:"kafka.producer.configuration,omitempty"`
	KafkaConsumerConfiguration confluent.ConfigMap `yaml:"kafka.consumer.configuration,omitempty"`
}

func ReadFile

func ReadFile(filePath string) (File, error)

func (*File) GenerateConsumerConfiguration

func (f *File) GenerateConsumerConfiguration() confluent.ConfigMap

func (*File) GenerateProducerConfiguration

func (f *File) GenerateProducerConfiguration() confluent.ConfigMap

Jump to

Keyboard shortcuts

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