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

Method GetRoomIDForAlias

roomserver/storage/interface.go:111–111  ·  view source on GitHub ↗

Look up the room ID a given alias refers to. Returns an error if there was a problem talking to the database.

(ctx context.Context, alias string)

Source from the content-addressed store, hash-verified

109 // Look up the room ID a given alias refers to.
110 // Returns an error if there was a problem talking to the database.
111 GetRoomIDForAlias(ctx context.Context, alias string) (string, error)
112 // Look up all aliases referring to a given room ID.
113 // Returns an error if there was a problem talking to the database.
114 GetAliasesForRoomID(ctx context.Context, roomID string) ([]string, error)

Callers 3

DirectoryRoomFunction · 0.65
createRoomFunction · 0.65
RoomAliasToIDFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected