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

Method KeyServerHTTPClient

setup/base/base.go:316–322  ·  view source on GitHub ↗

KeyServerHTTPClient returns KeyInternalAPI for hitting the key server over HTTP

()

Source from the content-addressed store, hash-verified

314
315// KeyServerHTTPClient returns KeyInternalAPI for hitting the key server over HTTP
316func (b *BaseDendrite) KeyServerHTTPClient() keyserverAPI.KeyInternalAPI {
317 f, err := keyinthttp.NewKeyServerClient(b.Cfg.KeyServerURL(), b.apiHttpClient)
318 if err != nil {
319 logrus.WithError(err).Panic("KeyServerHTTPClient failed", b.apiHttpClient)
320 }
321 return f
322}
323
324// PushGatewayHTTPClient returns a new client for interacting with (external) Push Gateways.
325func (b *BaseDendrite) PushGatewayHTTPClient() pushgateway.Client {

Callers 5

mainFunction · 0.95
UserAPIFunction · 0.80
SyncAPIFunction · 0.80
FederationAPIFunction · 0.80
ClientAPIFunction · 0.80

Calls 1

KeyServerURLMethod · 0.80

Tested by

no test coverage detected