package mgit

  1. Overview
  2. Docs

Module Mgit_unix.FlowSource

Sourceval error_msgf : ('a, Format.formatter, unit, ('b, [> `Msg of string ]) result) format4 -> 'a
Sourceval (let*) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
Sourceval inhibit : ('a -> unit) -> 'a -> unit
Sourcetype ctx = {
  1. ssh : string;
  2. authenticator : X509.Authenticator.t option;
  3. happy_eyeballs : Happy_eyeballs.t option;
  4. nameservers : (Dns.proto * Dns_client_miou_unix.Transport.io_addr list) option;
  5. mutable service : Happy_eyeballs_miou_unix.t option;
  6. mutable dns : Dns_client_miou_unix.t option;
}
Sourceval ctx : ?happy_eyeballs:??? -> ?nameservers:??? -> ?ssh:??? -> ?authenticator:??? -> unit -> ctx
Sourceval daemon : ctx option -> unit -> unit
Sourceval resolve : ctx -> string -> int -> (Unix.sockaddr list, [> `Msg of string ]) result
Sourceval pp_sockaddr : Format.formatter -> Unix.sockaddr -> unit
Sourceval connect_system : ctx -> ?port:??? -> ?tls_config:??? -> string -> ([> `Tcp of Miou_unix.file_descr | `Tls of Tls_miou_unix.t ] * Ipaddr.t * int * Tls.Core.epoch_data option, [> `Msg of string ]) result
Sourceval connect_happy_eyeballs : ?port:??? -> ?tls_config:??? -> Happy_eyeballs_miou_unix.t -> string -> ([> `Tcp of Miou_unix.file_descr | `Tls of Tls_miou_unix.t ] * Ipaddr.t * int * Tls.Core.epoch_data option, [> `Msg of string ]) result
Sourceval owned : finally:('a -> unit) -> 'a -> Miou.Ownership.t
Sourceval attempt : Unix.sockaddr list -> (Miou_unix.file_descr * Miou.Ownership.t, [> `Msg of string ]) result
Sourcetype process = {
  1. pid : int;
  2. stdin : Miou_unix.file_descr;
  3. stdout : Miou_unix.file_descr;
}
Sourceval quote : string -> string
Sourceval abort : process -> unit
Sourceval spawn : string -> string list -> string array -> (process * Miou.Ownership.t, [> `Msg of string ]) result
Sourceval ssh : ctx -> Mgit_sync.Endpoint.t -> service:string -> version:int -> (process * Miou.Ownership.t, [> `Msg of string ]) result
Sourcemodule Client : sig ... end
Sourcemodule Http : sig ... end
Sourcetype flow =
  1. | Tcp of Miou_unix.file_descr
  2. | Ssh of process
  3. | Http of Http.t
Sourcetype t = {
  1. flow : flow;
  2. resource : Miou.Ownership.t;
}
Sourceval connect : Http.ctx -> Mgit_sync.Endpoint.t -> service:string -> version:int -> (t, [> `Msg of string ]) result
Sourceval read : Miou_unix.file_descr -> bytes -> off:int -> len:int -> ([> `End | `Len of int ], [> `Msg of string ]) result
Sourceval write : Miou_unix.file_descr -> string -> off:int -> len:int -> (int, [> `Msg of string ]) result
Sourceval recv : t -> bytes -> off:int -> len:int -> (Mgit_sync.data, [> `Msg of string ]) result
Sourceval send : t -> string -> off:int -> len:int -> (int, [> `Msg of string ]) result
Sourceval close_fd : Miou_unix.file_descr -> unit
Sourceval close : t -> unit