Module Cephalopod_models.Com_Atproto_Sync_ListHosts

lexicon "com.atproto.sync.listHosts"

def main

type main_params = {
  1. limit : int64 option;
    (*

    default: 200 maximum: 1000 minimum: 1

    *)
  2. cursor : string option;
}
val show_main_params : main_params -> Ppx_deriving_runtime.string
val make_main_params : ?limit:int64 -> ?cursor:string -> unit -> main_params
val main_params_of_value : main_params Cephalopod_dasl.Value.Util.conv
val main_params_to_value : main_params -> Cephalopod_dasl.Value.t
type main_output = {
  1. cursor : string option;
  2. hosts : Types.com_atproto_sync_listhosts_host list;
    (*

    Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first.

    *)
}
val show_main_output : main_output -> Ppx_deriving_runtime.string
val main_output_of_value : main_output Cephalopod_dasl.Value.Util.conv
val main_output_to_value : main_output -> Cephalopod_dasl.Value.t
val main : (main_params, main_output, unit) Base.query

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

def host

type nonrec host = Types.com_atproto_sync_listhosts_host = {
  1. hostname : string;
    (*

    hostname of server; not a URL (no scheme)

    *)
  2. seq : int64 option;
    (*

    Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).

    *)
  3. accountCount : int64 option;
  4. status : Types.com_atproto_sync_defs_hoststatus option;
}