runner

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package runner (gocollect) is the core of the GoCollect daemon. The Run() method will do the collecting and submitting to the central server.

Package runner (gocollect) is the core of the GoCollect daemon. The Run() method will do the collecting and submitting to the central server.

Package runner (gocollect) is the core of the GoCollect daemon. The Run() method will do the collecting and submitting to the central server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	ConfigPathBase   string
	RegisterURL      string
	PushURL          string
	APIKey           string
	CollectorsPaths  []string
	RegidFilename    string
	GoCollectVersion string
}

Runner holds everything we need for gocollect action. Set all fields to a valid value before calling Run().

func (*Runner) Get

func (r *Runner) Get(collectorKey string) string

Get collects data from a single collector and returns it as a string.

func (*Runner) Run

func (r *Runner) Run() bool

Run collects data from the collectors and pushes data to the central server. If needed, it registers first.

Jump to

Keyboard shortcuts

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