engine

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package engine orchestrates background collectors for the daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine manages and runs all collectors.

func New

func New(st *store.Store, logger *logrus.Entry) *Engine

New creates a new Engine instance.

func (*Engine) Register

func (e *Engine) Register(c collector.Collector)

Register adds a collector to the engine.

func (*Engine) Start

func (e *Engine) Start(ctx context.Context)

Start runs all collectors and blocks until context is canceled.

func (*Engine) Store

func (e *Engine) Store() *store.Store

Store returns the engine's state store.

Jump to

Keyboard shortcuts

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