package datakit-github

  1. Overview
  2. Docs
type t

The type for the webhook server state.

val v : token -> Uri.t -> t

v tok uri is the webhook server state configured to listen for incoming webhook events to the public address uri and using the token tok to perform GitHub API calls. The function f will be called everytime a new event is received.

val run : t -> unit Lwt.t

run t is a blocking lwt thread which runs the webook listener.

The list of watched repository.

val watch : t -> Datakit_github.Repo.t -> unit Lwt.t

watch t r makes t watch the repo r.

val events : t -> Datakit_github.Event.t list

events t is the list of events stored in t.

val wait : t -> unit Lwt.t

wait t waits for new events to be available.

val clear : t -> unit

clear t clears the list of events stored in t.

OCaml

Innovation. Community. Security.