config

package
v0.0.0-...-a44f053 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config provides configuration for zedhookd.

Index

Constants

View Source
const Minimal = `` /* 159-byte string literal not displayed */

Minimal is the minimal configuration file for zedhookd.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server Server
	Debug  Debug
}

Config specifies the configuration for zedhookd.

func Parse

func Parse(r io.Reader) (*Config, error)

Parse parses a Config in TOML format from an io.Reader and verifies that the configuration is valid.

type Debug

type Debug struct {
	Prometheus bool `toml:"prometheus"`
	PProf      bool `toml:"pprof"`
}

Debug provides configuration for debugging and observability.

type Server

type Server struct {
	Address string `toml:"address"`
}

Server provides configuration for the zedhookd Server.

Jump to

Keyboard shortcuts

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