validate

package
v4.0.0-...-5981c31 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-2-Clause, BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfig

func ValidateConfig(fnc interface{}, pth, confdPath string)

ValidateConfig will take a configuration handling function and two paths. The first path is the base config file, and the second path points at the conf.d directory. The config handling function will take those two paths and process a config and return two values. The first value is an opaque object (hence the reflect voodoo). The second value is an error object the point of this function is to make it easy for ingester writers to just hand in their GetConfig function and the two paths and get a "go/no go" on the configurations.

func ValidateIngesterConfig

func ValidateIngesterConfig(fnc interface{}, pth, confdPath string)

ValidateIngesterConfig behaves same as ValidateConfig but also asserts that the provided config can return an IngestBaseConfig object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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