MCPcopy Create free account
hub / github.com/daodst/chat / FederationAPIHTTPClient

Method FederationAPIHTTPClient

setup/base/base.go:307–313  ·  view source on GitHub ↗

FederationAPIHTTPClient returns FederationInternalAPI for hitting the federation API server over HTTP

()

Source from the content-addressed store, hash-verified

305// FederationAPIHTTPClient returns FederationInternalAPI for hitting
306// the federation API server over HTTP
307func (b *BaseDendrite) FederationAPIHTTPClient() federationAPI.FederationInternalAPI {
308 f, err := federationIntHTTP.NewFederationAPIClient(b.Cfg.FederationAPIURL(), b.apiHttpClient, b.Caches)
309 if err != nil {
310 logrus.WithError(err).Panic("FederationAPIHTTPClient failed", b.apiHttpClient)
311 }
312 return f
313}
314
315// KeyServerHTTPClient returns KeyInternalAPI for hitting the key server over HTTP
316func (b *BaseDendrite) KeyServerHTTPClient() keyserverAPI.KeyInternalAPI {

Callers 4

mainFunction · 0.95
KeyServerFunction · 0.80
RoomServerFunction · 0.80
ClientAPIFunction · 0.80

Calls 1

FederationAPIURLMethod · 0.80

Tested by

no test coverage detected