config

package
v0.0.0-...-1e40bc2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSvcConfig

type BaseSvcConfig struct {
	LogLevel         string `mapstructure:"log_level"`
	HttpPort         string `mapstructure:"http_port"`
	HttpServerCert   string `mapstructure:"server_cert"`
	HttpServerKey    string `mapstructure:"server_key"`
	OtlpReceiverType string `mapstructure:"otlp_receiver_type"`
}

type Config

type Config struct {
	Base          BaseSvcConfig
	NetboxPusher  NetboxPusherConfig
	OtlpReceiver  OtlpReceiverConfig
	KafkaReceiver KafkaReceiverConfig
}

func LoadConfig

func LoadConfig(prefix string) Config

type KafkaReceiverConfig

type KafkaReceiverConfig struct {
	Brokers         []string `mapstructure:"brokers"`
	Topic           string   `mapstructure:"topic"`
	ProtocolVersion string   `mapstructure:"protocol_version"`
}

type NetboxPusherConfig

type NetboxPusherConfig struct {
	Endpoint string `mapstructure:"endpoint"`
	Token    string `mapstructure:"token"`
	Protocol string `mapstructure:"protocol"`
}

type OtlpReceiverConfig

type OtlpReceiverConfig struct {
	Endpoint string `mapstructure:"endpoint"`
	Protocol string `mapstructure:"protocol"`
}

Jump to

Keyboard shortcuts

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