api

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

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