feeds

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSubrouter

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

HandleSubrouter uses the subrouter for a specific calls and creates a tree of sorts handling each route with a different subrouter

func ListData

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

ListData lists data feeds Results

func ListTopo

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

ListTopo lists topology Results

func ListWeights

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

ListWeight list weights feeds results

func Options

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

Options request handler

func UpdateData

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

Update request handler creates a new feed topo resource

func UpdateTopo

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

Update request handler creates a new feed topo resource

func UpdateWeights

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

UpdateWeights request handler creates a new weights feed resource

Types

type Data

type Data struct {
	Tenants []string `bson:"tenants" json:"tenants"`
}

Data feeds for combined reports

type TenantInfo

type TenantInfo struct {
	Name string `bson:"name"`
	ID   string `bson:"id"`
}

Tenant Info containts quick info of tenant name and id

type Topo

type Topo struct {
	TopoType     string   `bson:"type" json:"type"`
	FeedURL      string   `bson:"feed_url" json:"feed_url"`
	Paginated    string   `bson:"paginated" json:"paginated"`
	FetchType    []string `bson:"fetch_type" json:"fetch_type"`
	UIDendpoints string   `bson:"uid_endpoints" json:"uid_endpoints"`
}

Topo holds a list of topology feed parameters

type Weights

type Weights struct {
	// name-type of service that provides weights
	FeedType string `bson:"type" json:"type"`
	// url of the feed
	FeedURL string `bson:"feed_url" json:"feed_url"`
	// weight factor hepspec cpu, mem etch
	WeightType string `bson:"weight_type" json:"weight_type"`
	// group type that the weight affects
	GroupType string `bson:"group_type" json:"group_type"`
}

Weights holds a list of weight feed parameters

Jump to

Keyboard shortcuts

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