package datakit-github

  1. Overview
  2. Docs
type t = private {
  1. user : string;
  2. repo : string;
}

The type for Github repositories.

type state = [
  1. | `Monitored
  2. | `Ignored
]

The type for repository state.

val v : user:string -> repo:string -> t

v user string will create a fresh t.

val of_string : string -> t option

of_string s parses strings of the form ":user/:repo".

val pp : t Fmt.t

pp is the pretty-printer for Github repositories.

val compare : t -> t -> int

compare compares repositories.

val pp_state : state Fmt.t

pp_state is the pretty-printer for repository state.

module Set : SET with type elt = t

Sets of repositories.

module Map : MAP with type key = t

Maps of repositories.

OCaml

Innovation. Community. Security.