internal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendSender

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

BackendSender holds configuration for backend communication.

func NewBackendSender

func NewBackendSender(endpointPath, tokenPath string) *BackendSender

NewBackendSender creates a new BackendSender with the given endpoint and token paths.

func (*BackendSender) Send

func (s *BackendSender) Send(cfg config.Config, data *model.Root) error

Send sends the provided model.Root as a log entry to the backend using configured paths.

type Collector

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

Collector is responsible for collecting system and hardware data.

func NewCollector

func NewCollector(logger *zap.SugaredLogger) Collector

NewCollector creates a new Collector instance with the provided logger.

func (*Collector) CollectData

func (c *Collector) CollectData(cfg config.Config) model.Root

CollectData collects system and hardware data and returns the model.Root struct.

func (*Collector) CollectDataShort

func (c *Collector) CollectDataShort(cfg config.Config) model.Root

CollectDataShort collects only Identity, UptimeSeconds and Kubernetes data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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