package ocaml-protoc-plugin

  1. Overview
  2. Docs
val name' : unit -> string
type t = {
  1. name : string option;
  2. input_type : string option;
  3. output_type : string option;
  4. options : MethodOptions.t option;
  5. client_streaming : bool;
  6. server_streaming : bool;
}
val make : ?name:string -> ?input_type:string -> ?output_type:string -> ?options:MethodOptions.t -> ?client_streaming:bool -> ?server_streaming:bool -> unit -> t
val to_proto : t -> Ocaml_protoc_plugin.Runtime.Runtime'.Writer.t
val from_proto : Ocaml_protoc_plugin.Runtime.Runtime'.Reader.t -> (t, [> Ocaml_protoc_plugin.Runtime.Runtime'.Result.error ]) result