Documentation
¶
Overview ¶
Package api provides federation analytics API endpoints and handlers.
Index ¶
- type FederationAnalyticsHandler
- func (fah *FederationAnalyticsHandler) GetFederationClusters(w http.ResponseWriter, r *http.Request)
- func (fah *FederationAnalyticsHandler) GetFederationEdges(w http.ResponseWriter, r *http.Request)
- func (fah *FederationAnalyticsHandler) GetFederationNodes(w http.ResponseWriter, r *http.Request)
- func (fah *FederationAnalyticsHandler) GetInstanceMetadata(w http.ResponseWriter, r *http.Request)
- func (fah *FederationAnalyticsHandler) GetRecommendations(w http.ResponseWriter, r *http.Request)
- func (fah *FederationAnalyticsHandler) GetRelationshipAnalysis(w http.ResponseWriter, r *http.Request)
- func (fah *FederationAnalyticsHandler) GetTimeSeries(w http.ResponseWriter, r *http.Request)
- func (fah *FederationAnalyticsHandler) RegisterRoutes(r *mux.Router)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FederationAnalyticsHandler ¶
type FederationAnalyticsHandler struct {
// contains filtered or unexported fields
}
FederationAnalyticsHandler handles federation analytics API endpoints
func NewFederationAnalyticsHandler ¶
func NewFederationAnalyticsHandler(store core.RepositoryStorage, hooks *federation.FederationHooks) *FederationAnalyticsHandler
NewFederationAnalyticsHandler creates a new federation analytics handler
func (*FederationAnalyticsHandler) GetFederationClusters ¶
func (fah *FederationAnalyticsHandler) GetFederationClusters(w http.ResponseWriter, r *http.Request)
GetFederationClusters returns federation clusters
func (*FederationAnalyticsHandler) GetFederationEdges ¶
func (fah *FederationAnalyticsHandler) GetFederationEdges(w http.ResponseWriter, r *http.Request)
GetFederationEdges returns federation graph edges
func (*FederationAnalyticsHandler) GetFederationNodes ¶
func (fah *FederationAnalyticsHandler) GetFederationNodes(w http.ResponseWriter, r *http.Request)
GetFederationNodes returns federation graph nodes
func (*FederationAnalyticsHandler) GetInstanceMetadata ¶
func (fah *FederationAnalyticsHandler) GetInstanceMetadata(w http.ResponseWriter, r *http.Request)
GetInstanceMetadata returns detailed metadata for an instance
func (*FederationAnalyticsHandler) GetRecommendations ¶
func (fah *FederationAnalyticsHandler) GetRecommendations(w http.ResponseWriter, r *http.Request)
GetRecommendations returns federation recommendations for a domain
func (*FederationAnalyticsHandler) GetRelationshipAnalysis ¶
func (fah *FederationAnalyticsHandler) GetRelationshipAnalysis(w http.ResponseWriter, r *http.Request)
GetRelationshipAnalysis returns analysis of relationship between two domains
func (*FederationAnalyticsHandler) GetTimeSeries ¶
func (fah *FederationAnalyticsHandler) GetTimeSeries(w http.ResponseWriter, r *http.Request)
GetTimeSeries returns time-series data for federation metrics
func (*FederationAnalyticsHandler) RegisterRoutes ¶
func (fah *FederationAnalyticsHandler) RegisterRoutes(r *mux.Router)
RegisterRoutes registers the federation analytics routes