Module Network.Location

type t = [
  1. | `Unix of string
  2. | `TCP of string * int
]
val validate_public : t -> unit

Raises an exception if t is not a valid public address (e.g. the Unix path is relative)

val pp : t Fmt.t
val equal : t -> t -> bool
val unix : string -> t

unix path is a Unix-domain socket address. path is made absolute if it isn't already.

val tcp : host:string -> port:int -> t

tcp ~host port is `TCP (host, port).

val of_string : string -> (t, [> `Msg of string ]) Stdlib.result
val cmdliner_conv : t Cmdliner.Arg.conv