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

Function SyncAPI

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

Source from the content-addressed store, hash-verified

21)
22
23func SyncAPI(base *basepkg.BaseDendrite, cfg *config.Dendrite) {
24 userAPI := base.UserAPIClient()
25
26 rsAPI := base.RoomserverHTTPClient()
27
28 syncapi.AddPublicRoutes(
29 base,
30 userAPI, rsAPI,
31 base.KeyServerHTTPClient(),
32 )
33
34 base.SetupAndServeHTTP(
35 base.Cfg.SyncAPI.InternalAPI.Listen,
36 base.Cfg.SyncAPI.ExternalAPI.Listen,
37 nil, nil,
38 )
39}

Callers

nothing calls this directly

Calls 4

UserAPIClientMethod · 0.80
RoomserverHTTPClientMethod · 0.80
KeyServerHTTPClientMethod · 0.80
SetupAndServeHTTPMethod · 0.80

Tested by

no test coverage detected