api

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotEnabled = errors.New("module is not enabled")

ErrNotEnabled is a special error type that should be returned by a Factory when the associated Module is not enabled.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	Name string
	Fn   func(cfg *config.AgentConfig) (Module, error)
}

Factory encapsulates the initialization of a Module

type Module

type Module interface {
	GetStats() map[string]interface{}
	Register(*http.ServeMux) error
	Close()
}

Module defines the common API implemented by every System Probe Module

Jump to

Keyboard shortcuts

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