config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "GOPHERMQ_"

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	Port       int `koanf:"port"`
	MaxPending int `koanf:"max-pending"`
}

Broker represents Broker configuration struct.

type Config

type Config struct {
	Logger     Logger     `koanf:"logger"`
	Broker     Broker     `koanf:"broker"`
	Monitoring Monitoring `koanf:"monitoring"`
}

Config represents application configuration struct.

func Default

func Default() Config

nolint:gomnd

func Init

func Init() Config

type Logger

type Logger struct {
	Level string `koanf:"level"`
}

Logger represents logger configuration struct.

type Monitoring

type Monitoring struct {
	Enable bool   `koanf:"enable"`
	Port   string `koanf:"port"`
}

Monitoring represents Monitoring configuration struct.

Jump to

Keyboard shortcuts

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