analysis

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortfolioAnalyzer

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

func NewPortfolioAnalyzer

func NewPortfolioAnalyzer(dtClient *dtrack.Client, auditor audit.Auditor, logger zerolog.Logger, filterTags []string) (*PortfolioAnalyzer, error)

func (PortfolioAnalyzer) AuditResultChan

func (pa PortfolioAnalyzer) AuditResultChan() <-chan any

AuditResultChan returns the analyzer's channel for audit results.

func (PortfolioAnalyzer) Start

func (pa PortfolioAnalyzer) Start(ctx context.Context, triggerChan <-chan struct{}) error

Start listens for messages on triggerChan and launches a portfolio analysis when a trigger is received. Upon termination, all channels owned by this PortfolioAnalyzer instance are closed. Start is thus intended to only be invoked once.

Jump to

Keyboard shortcuts

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