api

package
v1.6.19 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: AGPL-3.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api provides federation analytics API endpoints and handlers.

Index

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

Jump to

Keyboard shortcuts

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