Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file kafka_raw.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141typekafka_handletypekafka_conftypekafka_topictypekafka_type=Producer|Consumerexternalconf_new:unit->kafka_conf="ocaml_rd_kafka_conf_new"externalconf_set:kafka_conf->string->string->(unit,string)result="ocaml_rd_kafka_conf_set"externalkafka_new:kafka_type->kafka_conf->int->(kafka_handle,string)result="ocaml_rd_kafka_new"externaltopic_new:kafka_handle->string->(kafka_topic,string)result="ocaml_rd_kafka_topic_new"externaltopic_destroy:kafka_topic->unit="ocaml_rd_kafka_topic_destroy"externalproduce:kafka_topic->int32->bytesoption->bytesoption->int64->(unit,int)result="ocaml_rd_kafka_produce"externalenable_queue_events:kafka_handle->int->unit="ocaml_kafka_enable_queue_events"externaldisable_queue_events:kafka_handle->unit="ocaml_kafka_disable_queue_events"externalpoll:kafka_handle->int->int="ocaml_rd_kafka_poll"externalflush:kafka_handle->int->(unit,int)result="ocaml_rd_kafka_flush"(* destroy nulls the OCaml pointer before calling rd_kafka_destroy, so the GC
finalizer becomes a no-op. Releases the domain lock during the blocking call. *)externaldestroy:kafka_handle->unit="ocaml_rd_kafka_destroy"let()=ignoredestroy(* suppress warning 32 — used by kafka_producer *)externalerr2str:int->string="ocaml_rd_kafka_err2str"externalsubscribe:kafka_handle->stringlist->(unit,string)result="ocaml_rd_kafka_subscribe"typepoll_result=|Timeout|Msgof(string*int32*int64*bytesoption*bytesoption*int64option*(string*stringoption)list)|Poll_errorofintexternalconsumer_poll:kafka_handle->int->poll_result="ocaml_rd_kafka_consumer_poll"(* Event-driven consumer polling: wait on a consumer-queue wake fd, then drain
rd_kafka_consume_queue with timeout 0. *)externalconsumer_queue_events_enable:kafka_handle->int->unit="ocaml_kafka_consumer_queue_events_enable"externalconsumer_queue_events_disable:kafka_handle->unit="ocaml_kafka_consumer_queue_events_disable"externalconsumer_queue_poll:kafka_handle->int->poll_result="ocaml_rd_kafka_consumer_queue_poll"externalproduce_v:kafka_handle->string->int32->bytesoption->bytesoption->int64->(string*stringoption)list->(unit,int)result="ocaml_rd_kafka_produce_v_bytecode""ocaml_rd_kafka_produce_v"externalconsumer_close:kafka_handle->unit="ocaml_rd_kafka_consumer_close"externalassignment_count:kafka_handle->int="ocaml_rd_kafka_assignment_count"externalassignment:kafka_handle->(string*int32)list="ocaml_rd_kafka_assignment"externalcreate_topic_raw:kafka_handle->string->int->int->int="ocaml_rd_kafka_create_topic"letcreate_topich~topic_name~partitions~replication_factor=create_topic_rawhtopic_namepartitionsreplication_factorexternalcommit_message_raw:kafka_handle->string->int32->int64->bool->(unit,int)result="ocaml_rd_kafka_commit_message"letcommit_messageh~topic~partition~offset~async=commit_message_rawhtopicpartitionoffsetasyncexternalcommit_all:kafka_handle->bool->(unit,int)result="ocaml_rd_kafka_commit_all"externalcommit_offsets:kafka_handle->(string*int32*int64)list->bool->(unit,int)result="ocaml_rd_kafka_commit_offsets"externalpipe_create:unit->int*int="ocaml_kafka_pipe_create"externaldelivery_sizeof:unit->int="ocaml_kafka_delivery_sizeof"let()=ignoredelivery_sizeof(* suppress warning 32 — used by kafka_producer *)externalread_delivery:int->int64*int="ocaml_kafka_read_delivery"typetxn_error={code:int;is_fatal:bool;is_retriable:bool;requires_abort:bool;}externalinit_transactions:kafka_handle->int->(unit,txn_error)result="ocaml_rd_kafka_init_transactions"externalbegin_transaction:kafka_handle->(unit,txn_error)result="ocaml_rd_kafka_begin_transaction"externalcommit_transaction:kafka_handle->int->(unit,txn_error)result="ocaml_rd_kafka_commit_transaction"externalabort_transaction:kafka_handle->int->(unit,txn_error)result="ocaml_rd_kafka_abort_transaction"externalsend_offsets_to_transaction:kafka_handle->kafka_handle->(string*int32*int64)list->int->(unit,txn_error)result="ocaml_rd_kafka_send_offsets_to_transaction"(** Pause / resume delivery for a single partition. Local operations — no
broker round-trip. Used by consume_partitioned to stop new messages arriving
for a partition while its retry fiber sleeps. *)externalpause_partition:kafka_handle->string->int32->unit="ocaml_rd_kafka_pause_partition"externalresume_partition:kafka_handle->string->int32->unit="ocaml_rd_kafka_resume_partition"