sources

package
v0.0.0-...-2f9bd9a Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotReady = errors.New("source not ready")
View Source
var Sources = map[string]SourceGenerator{}

Functions

func FritzAction

func FritzAction(action string) (string, error)

Types

type CPU

type CPU struct {
	PerCPU     bool
	SystemUser bool
	// contains filtered or unexported fields
}

func (*CPU) Init

func (s *CPU) Init() error

func (*CPU) Read

func (s *CPU) Read() ([]string, error)

type File

type File struct {
	Path   string
	Factor float64

	Tags map[string]string
}

func (*File) Init

func (f *File) Init() error

func (*File) Read

func (f *File) Read() ([]string, error)

type FritzBox

type FritzBox struct {
	// contains filtered or unexported fields
}

type RAM

type RAM struct {
	Buffered bool
}

func (*RAM) Init

func (s *RAM) Init() error

func (*RAM) Read

func (s *RAM) Read() ([]string, error)

type Source

type Source interface {
	Read() ([]string, error)
	Init() error
}

type SourceGenerator

type SourceGenerator func(node yaml.Node) (Source, error)

Jump to

Keyboard shortcuts

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