config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

package config parses flags, environment variables and json object to build a Config object that's used throughout the monitor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Kafka          Kafka
	SchemaRegistry SchemaRegistry
	Feeds          Feeds
	Nodes          Nodes
	HTTP           HTTP
	Feature        Feature
}

func Parse

func Parse() (Config, error)

type Feature

type Feature struct {
}

Feature is used to add temporary feature flags to the binary.

type Feeds

type Feeds struct {
	URL             string
	RDDReadTimeout  time.Duration
	RDDPollInterval time.Duration
	// Ids of feeds that are present in the RDD but should not be monitored.
	// These get matched against the string returned by FeedConfig#GetID() for
	// each feed in RDD. If equal, the feed will get ignored!
	IgnoreIDs []string
}

type HTTP

type HTTP struct {
	Address string
}

type Kafka

type Kafka struct {
	Brokers          string
	ClientID         string
	SecurityProtocol string

	SaslMechanism string
	SaslUsername  string
	SaslPassword  string

	TransmissionTopic        string
	ConfigSetSimplifiedTopic string
}

type Nodes

type Nodes struct {
	URL string
}

type SchemaRegistry

type SchemaRegistry struct {
	URL      string
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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