federationgraph

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Overview

Package federationgraph provides federation graph visualization services. It builds and analyzes inter-instance relationships, generates graph layouts, calculates health scores, and provides flow analysis for federation activities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service provides federation graph visualization functionality

func NewService

func NewService(federationRepo federationGraphRepository, logger *zap.Logger, localDomain string) *Service

NewService creates a new federation graph service

func (*Service) GetFederationFlow

func (s *Service) GetFederationFlow(ctx context.Context, period model.TimePeriod) (*model.FederationFlow, error)

GetFederationFlow analyzes federation activity flow over a time period

func (*Service) GetFederationMap

func (s *Service) GetFederationMap(ctx context.Context, depth int) (*model.FederationGraph, error)

GetFederationMap builds a graph of federation connections up to the specified depth

func (*Service) GetInstanceRelationships

func (s *Service) GetInstanceRelationships(ctx context.Context, domain string) (*model.InstanceRelations, error)

GetInstanceRelationships retrieves detailed relationships for a specific instance

Jump to

Keyboard shortcuts

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