groupby

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package groupby implements the "group-by" transform primitive: it buckets the timeline by a chosen Event field and writes one Row per bucket to State.Rows, each carrying the bucket's event count and additions/ deletions totals.

Index

Constants

View Source
const Name = "group-by"

Name is the primitive's registry key.

Variables

View Source
var ErrUnknownBy = errors.New("unknown group-by field")

ErrUnknownBy is returned by New when the "by" param names a field group-by doesn't know how to bucket on.

Functions

func New

func New(rawParams []byte) (transform.Primitive, error)

Types

type By

type By string

By selects which Event field group-by buckets on.

const (
	ByOwner  By = "owner"
	ByRepo   By = "repo"
	ByType   By = "type"
	ByBranch By = "branch"
	ByDay    By = "day"
)

Jump to

Keyboard shortcuts

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