config

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MqConfig MqConfig `yaml:"mq"`
	Metrics  []manager.MetricConfig
}

func ParseConfig

func ParseConfig(content []byte) (Config, error)

ParseConfig parses configuration byte array into configuration data struct

func ReadConfig

func ReadConfig(filename string) (Config, error)

ReadConfig reads the provided file for configuration

type MqConfig

type MqConfig struct {
	Server string
	Topic  string
}

Jump to

Keyboard shortcuts

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