aggregator

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

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

Aggregator handles metrics aggregation

func New

func New(cfg *config.Config) *Aggregator

New creates a new Aggregator

func (*Aggregator) Aggregate

func (a *Aggregator) Aggregate(data *models.RawData, dateRange *config.ParsedDateRange) (*models.GlobalMetrics, error)

Aggregate processes raw data and produces global metrics

func (*Aggregator) SetUserProfiles

func (a *Aggregator) SetUserProfiles(profiles map[string]UserProfile)

SetUserProfiles sets the user profiles for enhanced deduplication

type UserProfile

type UserProfile struct {
	ID        int64  // GitHub user ID
	Login     string // GitHub username
	Name      string // Display name
	Email     string // Public email (may be empty)
	AvatarURL string
}

UserProfile contains GitHub user profile information for deduplication

Jump to

Keyboard shortcuts

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