Hcs.Grpc.Server.Service

hcs · API reference

type t
val v : unit -> t

A new, empty service.

val add_rpc : name:string -> rpc:rpc -> t -> t

Register rpc under method name; replaces any existing one. Returns the same (mutated) service for chaining.