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

Method QueryStateAndAuthChain

roomserver/api/api.go:176–176  ·  view source on GitHub ↗

Query to get state and auth chain for a (potentially hypothetical) event. Takes lists of PrevEventIDs and AuthEventsIDs and uses them to calculate the state and auth chain to return.

(ctx context.Context, req *QueryStateAndAuthChainRequest, res *QueryStateAndAuthChainResponse)

Source from the content-addressed store, hash-verified

174 // Takes lists of PrevEventIDs and AuthEventsIDs and uses them to calculate
175 // the state and auth chain to return.
176 QueryStateAndAuthChain(ctx context.Context, req *QueryStateAndAuthChainRequest, res *QueryStateAndAuthChainResponse) error
177 // Query if we think we're still in a room.
178 QueryServerJoinedToRoom(ctx context.Context, req *QueryServerJoinedToRoomRequest, res *QueryServerJoinedToRoomResponse) error
179 QueryPublishedRooms(ctx context.Context, req *QueryPublishedRoomsRequest, res *QueryPublishedRoomsResponse) error

Callers 5

AddRoutesFunction · 0.65
GetEventAuthFunction · 0.65
getStateFunction · 0.65
SendJoinFunction · 0.65

Implementers 2

httpRoomserverInternalAPIroomserver/inthttp/client.go
RoomserverInternalAPITraceroomserver/api/api_trace.go

Calls

no outgoing calls

Tested by

no test coverage detected