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

Function UserAPI

cmd/dendrite-polylith-multi/personalities/userapi.go:23–37  ·  view source on GitHub ↗
(base *basepkg.BaseDendrite, cfg *config.Dendrite)

Source from the content-addressed store, hash-verified

21)
22
23func UserAPI(base *basepkg.BaseDendrite, cfg *config.Dendrite) {
24 userAPI := userapi.NewInternalAPI(
25 base, &cfg.UserAPI, cfg.Derived.ApplicationServices,
26 base.KeyServerHTTPClient(), base.RoomserverHTTPClient(),
27 base.PushGatewayHTTPClient(),
28 )
29
30 userapi.AddInternalRoutes(base.InternalAPIMux, userAPI)
31
32 base.SetupAndServeHTTP(
33 base.Cfg.UserAPI.InternalAPI.Listen, // internal listener
34 basepkg.NoListener, // external listener
35 nil, nil,
36 )
37}

Callers

nothing calls this directly

Calls 4

KeyServerHTTPClientMethod · 0.80
RoomserverHTTPClientMethod · 0.80
PushGatewayHTTPClientMethod · 0.80
SetupAndServeHTTPMethod · 0.80

Tested by

no test coverage detected