MCPcopy Create free account
hub / github.com/compozy/agh / hostAPINetworkDirectRoomQuery

Function hostAPINetworkDirectRoomQuery

internal/extension/host_api_network.go:476–489  ·  view source on GitHub ↗
(limit int, after string, peerID string)

Source from the content-addressed store, hash-verified

474}
475
476func hostAPINetworkDirectRoomQuery(limit int, after string, peerID string) (store.NetworkDirectRoomQuery, error) {
477 if limit == 0 {
478 limit = defaultHostAPIDefaultLimit
479 }
480 query := store.NetworkDirectRoomQuery{
481 PeerID: strings.TrimSpace(peerID),
482 Limit: limit,
483 After: strings.TrimSpace(after),
484 }
485 if err := query.Validate(); err != nil {
486 return store.NetworkDirectRoomQuery{}, invalidParamsRPCError(err)
487 }
488 return query, nil
489}
490
491func hostAPINetworkConversationMessageQuery(
492 limit int,

Callers 1

handleNetworkDirectsMethod · 0.85

Calls 2

ValidateMethod · 0.95
invalidParamsRPCErrorFunction · 0.85

Tested by

no test coverage detected