tpl

package
v0.0.0-...-5655933 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 2 Imported by: 0

README

tpl

这不是个插件,这是插件开发模板,如果要开发某个采集插件,可以拷贝一份tpl的代码,改一下作为基础代码使用

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	config.InstanceConfig
}

type PluginTpl

type PluginTpl struct {
	config.PluginConfig
	Instances []*Instance `toml:"instances"`
}

func (*PluginTpl) Clone

func (pt *PluginTpl) Clone() inputs.Input

func (*PluginTpl) GetInstances

func (pt *PluginTpl) GetInstances() []inputs.Instance

func (*PluginTpl) Name

func (pt *PluginTpl) Name() string

Jump to

Keyboard shortcuts

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