inputmetrics

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFilesWithRegexp

func FilterFilesWithRegexp(files []string, r string) ([]string, error)

func GetMetricsFileData

func GetMetricsFileData(path string, d Decoder) (map[string]interface{}, error)

func GetMetricsStdinData

func GetMetricsStdinData(d Decoder) (map[string]interface{}, error)

func GetMetricsURLData

func GetMetricsURLData(url string, d Decoder) (map[string]interface{}, error)

func JSONDecoder

func JSONDecoder(r io.Reader) (map[string]interface{}, error)

func YAMLDecoder

func YAMLDecoder(r io.Reader) (map[string]interface{}, error)

Types

type Decoder

type Decoder func(r io.Reader) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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