cohorts

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

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

Matcher is a type that takes in some requirements and node tags and can be told when a node has succeeded and it will report if the set of successful nodes meets the requirements.

func NewMatcher

func NewMatcher(reqs *pb.CohortRequirements, totalPieces int) *Matcher

NewMatcher creates a new matcher with the given node tags and requirements.

func (*Matcher) Increment

func (m *Matcher) Increment(tags map[string]string, node byte) bool

Increment marks a node as successful.

Jump to

Keyboard shortcuts

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