input

package
v0.0.0-...-5c7ffcf Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetrics

func AddMetrics(a api.Accumulator, values map[string]interface{})

func Parse

func Parse(inputType string, config Config) (_ api.Input, retErr error)

理论上不会有关于本机的多个相同类型的input任务

func Register

func Register(inputType string, factory Factory)

Types

type Config

type Config interface{}

Config是抽象的, 需要根据各个type而定

type Factory

type Factory func(Config) (api.Input, error)

Jump to

Keyboard shortcuts

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