Helpers for parsing connection strings in Kafka.
Helpers for parsing connection strings in Kafka.
(connection-string->uris connection-string)
Returns a collection of URIs from a connection connection string.
Returns a collection of URIs from a connection connection string.
(fragment->uri host-and-port)
Extracts a connection string fragment as a URI.
Useful for further parsing/usage with other APIs.
Extracts a connection string fragment as a URI. Useful for further parsing/usage with other APIs.
(parse-host host-and-port)
Parses just the host from a host/port fragment in a connection string and returns it as a number.
Parses just the host from a host/port fragment in a connection string and returns it as a number.
(parse-host-and-port host-and-port)
Parses a host/port fragment, and extracts them as a map.
Parses a host/port fragment, and extracts them as a map.
(parse-port host-and-port)
Parses just the port from a host/port fragment in a connection string and returns it as a number.
Parses just the port from a host/port fragment in a connection string and returns it as a number.
(parse-ports connection-string)
Returns a set of the ports used by a connection string.
Note that the ports may be open on different hosts, so this is more useful in scenarios such as testing on localhost or where a FQDN is used or in bridged configurations such as those used commonly by containers such as docker.
Useful for checking what ports are open in a cluster.
Returns a set of the ports used by a connection string. Note that the ports may be open on different hosts, so this is more useful in scenarios such as testing on localhost or where a FQDN is used or in bridged configurations such as those used commonly by containers such as docker. Useful for checking what ports are open in a cluster.
(parse-server-hosts connection-string)
Returns a set of just the hosts from a connection string.
Useful for seeing what hosts are active in a cluster.
Returns a set of just the hosts from a connection string. Useful for seeing what hosts are active in a cluster.
(parse-server-list connection-string)
Parses the servers and ports in a connection string and returns a sequence of server/port maps.
Useful for logging and getting an overview of resource usage.
Parses the servers and ports in a connection string and returns a sequence of server/port maps. Useful for logging and getting an overview of resource usage.
(parse-servers connection-string)
Returns a vector of server connection strings from a connection string.
Returns a vector of server connection strings from a connection string.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close