federationapi

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 20 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInternalRoutes added in v0.6.0

func AddInternalRoutes(router *mux.Router, intAPI api.FederationInternalAPI)

AddInternalRoutes registers HTTP handlers for the internal API. Invokes functions on the given input API.

func AddPublicRoutes

func AddPublicRoutes(
	process *process.ProcessContext,
	fedRouter, keyRouter, wellKnownRouter *mux.Router,
	cfg *config.FederationAPI,
	userAPI userapi.UserInternalAPI,
	federation *gomatrixserverlib.FederationClient,
	keyRing gomatrixserverlib.JSONVerifier,
	rsAPI roomserverAPI.RoomserverInternalAPI,
	federationAPI federationAPI.FederationInternalAPI,
	keyAPI keyserverAPI.KeyInternalAPI,
	mscCfg *config.MSCs,
	servers federationAPI.ServersInRoomProvider,
)

AddPublicRoutes sets up and registers HTTP handlers on the base API muxes for the FederationAPI component.

func NewInternalAPI added in v0.6.0

func NewInternalAPI(
	base *base.BaseDendrite,
	federation *gomatrixserverlib.FederationClient,
	rsAPI roomserverAPI.RoomserverInternalAPI,
	caches *caching.Caches,
	keyRing *gomatrixserverlib.KeyRing,
	resetBlacklist bool,
) api.FederationInternalAPI

NewInternalAPI returns a concerete implementation of the internal API. Callers can call functions directly on the returned API or via an HTTP interface using AddInternalRoutes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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