argo-web-api: github.com/ARGOeu/argo-web-api/app/factors Index | Files

package factors

import "github.com/ARGOeu/argo-web-api/app/factors"

Index

Package Files

factorsController.go factorsModel.go factorsView.go routing.go

func HandleSubrouter Uses

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

func List Uses

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 Uses

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

type Factor Uses

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

type FactorsOutput Uses

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

FactorsOutput struct to represent Name/Factor pair

Package factors imports 7 packages (graph) and is imported by 3 packages. Updated 2018-11-29. Refresh now. Tools for package owners.