fractionalpercent

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Hundred         = 100
	Thousand        = 1000
	TenThousand     = 10000
	HundredThousand = 100000
	Million         = 1000000
)

Variables

This section is empty.

Functions

func FromFloat32

func FromFloat32(p float32) *xdstype.FractionalPercent

FromFloat32 translates a float to envoy.type.FractionalPercent.

func FromFraction

func FromFraction(fraction *gwapiv1.Fraction) *xdstype.FractionalPercent

FromFraction translates a gwapiv1.Fraction instance to envoy.type.FractionalPercent.

func FromIn32

func FromIn32(p int32) *xdstype.FractionalPercent

FromIn32 translates an int32 instance to envoy.type.FractionalPercent.

func ToPercent added in v1.8.0

func ToPercent(fp *gwapiv1.Fraction) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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