Documentation
¶
Index ¶
- func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)
- func ListData(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func ListTopo(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func ListWeights(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func UpdateData(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func UpdateTopo(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func UpdateWeights(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- type Data
- type TenantInfo
- type Topo
- type Weights
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 ListWeights ¶
ListWeight list weights feeds results
func UpdateData ¶
Update request handler creates a new feed topo resource
func UpdateTopo ¶
Update request handler creates a new feed topo resource
Types ¶
type Data ¶
type Data struct {
Tenants []string `bson:"tenants" json:"tenants"`
}
Data feeds for combined reports
type TenantInfo ¶
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
Click to show internal directories.
Click to hide internal directories.