Esempio n. 1
0
File: main.go Progetto: IRCody/snap
func main() {
	// Provided:
	//   the definition of the plugin metadata
	//   the implementation satisfying plugin.CollectorPlugin

	// Start a collector
	plugin.StartCollector(
		new(mock.Mock),
		pluginName,
		pluginVersion,
		plugin.CacheTTL(100*time.Millisecond),
		plugin.RoutingStrategy(plugin.StickyRouter),
	)
}
// plugin bootstrap
func main() {
	plugin.StartCollector(libvirtcollector.LibvirtCollector{}, libvirtcollector.Name, libvirtcollector.Version)

}