comAtprotoSyncListHosts function

Future<XRPCResponse<SyncListHostsOutput>> comAtprotoSyncListHosts({
  1. int? limit,
  2. String? cursor,
  3. required ServiceContext $ctx,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays.

Implementation

Future<XRPCResponse<SyncListHostsOutput>> comAtprotoSyncListHosts({
  int? limit,
  String? cursor,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoSyncListHosts,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
  },
  to: const SyncListHostsOutputConverter().fromJson,
);