priorities

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPriority       = serviceerror.NewInvalidArgument("priority key can't be negative")
	ErrFairnessKeyLength     = serviceerror.NewInvalidArgument("fairness key length exceeds limit")
	ErrInvalidFairnessWeight = serviceerror.NewInvalidArgument("must be greater than zero")
)

Functions

func Merge

func Merge(
	base *commonpb.Priority,
	override *commonpb.Priority,
) *commonpb.Priority

func Validate

func Validate(p *commonpb.Priority) error

func ValidateFairnessKey

func ValidateFairnessKey(key string) error

func ValidateFairnessWeight

func ValidateFairnessWeight(weight float32) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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