soulvalidation

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChallengeWeight

func ChallengeWeight(challengeType string) float64

func ComputeProgressiveScore

func ComputeProgressiveScore(events []Event, now time.Time, cfg Config) (float64, int64)

func IsValidChallengeType

func IsValidChallengeType(t string) bool

func ScoreDelta

func ScoreDelta(challengeType string, result string) float64

Types

type Config

type Config struct {
	Epoch     time.Duration
	DecayRate float64 // per epoch, in [0,1]
}

type Event

type Event struct {
	EvaluatedAt time.Time
	Result      string
	Delta       float64
}

Jump to

Keyboard shortcuts

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