config

package
v0.0.0-...-116427d Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 9 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 {
	*api.Config
	// contains filtered or unexported fields
}

Config represents the internal view of the configuration

func ReadConfigFile

func ReadConfigFile(configPath string, monitor bool, logger log15.Logger) (*Config, error)

ReadConfigFile will return a Config struct from the content of a yaml file

func (*Config) RegisterHandler

func (c *Config) RegisterHandler(handler func(*Config)) error

RegisterHandler makes it possible to register a function to be called on config changes

Jump to

Keyboard shortcuts

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