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

Function hostAPINetworkThreadQuery

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

Source from the content-addressed store, hash-verified

460}
461
462func hostAPINetworkThreadQuery(limit int, after string) (store.NetworkThreadQuery, error) {
463 if limit == 0 {
464 limit = defaultHostAPIDefaultLimit
465 }
466 query := store.NetworkThreadQuery{
467 Limit: limit,
468 After: strings.TrimSpace(after),
469 }
470 if err := query.Validate(); err != nil {
471 return store.NetworkThreadQuery{}, invalidParamsRPCError(err)
472 }
473 return query, nil
474}
475
476func hostAPINetworkDirectRoomQuery(limit int, after string, peerID string) (store.NetworkDirectRoomQuery, error) {
477 if limit == 0 {

Callers 1

handleNetworkThreadsMethod · 0.85

Calls 2

ValidateMethod · 0.95
invalidParamsRPCErrorFunction · 0.85

Tested by

no test coverage detected