config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package config implements all configuration-related logic for this repo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Reload() error
	Gatherers() []data.Gatherer
}

Config contains the configuration of nodeinfo that is stored in a separate config file.

func Create

func Create(filename string) (Config, error)

Create creates a new config based on the passed-in file name and contents. If the file can't be read or parsed, then this will return a non-nil error.

Jump to

Keyboard shortcuts

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