factors

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSubrouter

func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)

func List

func List(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

List returns a list of factors (weights) per endpoint group (i.e. site)

func Options

func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

Types

type Factor

type Factor struct {
	Site   string `xml:"site,attr" json:"site"`
	Weight string `xml:"weight,attr" json:"weight"`
}

type FactorsOutput

type FactorsOutput struct {
	Site   string  `bson:"name"`
	Weight float64 `bson:"hepspec"`
}

FactorsOutput struct to represent Name/Factor pair

Jump to

Keyboard shortcuts

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