crowdsourcevexing

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRecommendation = fmt.Errorf("no recommendation")

Functions

This section is empty.

Types

type Organization

type Organization struct {
	ID         uuid.UUID
	Trustscore float64
	CreatedAt  time.Time
	CreatedBy  string
	UserIDs    []string
}

type Project

type Project struct {
	ID             uuid.UUID
	OrganizationID uuid.UUID
	Trustscore     float64
}

type User

type User struct {
	ID string
}

type Vote

type Vote struct {
	Voters []VoterID
	Value  float64
}

type VoterID added in v1.4.0

type VoterID struct {
	OrganizationID uuid.UUID
	ProjectID      uuid.UUID
	AssetID        uuid.UUID
	Verified       bool
}

type Votes added in v1.12.0

type Votes struct {
	Verified int `json:"verified"`
	Total    int `json:"total"`
}

func CrowdsourcedVexing

func CrowdsourcedVexing(matchingRules []models.VEXRule, organizations []Organization, projects []Project, assets []models.Asset) (models.VEXRule, float64, Votes, error)

Jump to

Keyboard shortcuts

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