Liking cljdoc? Tell your friends :D

franzy.common.broker.parsers

Helpers for parsing connection strings in Kafka.

Helpers for parsing connection strings in Kafka.
raw docstring

connection-string->urisclj

(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.
raw docstring

fragment->uriclj

(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.
raw docstring

parse-hostclj

(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.
raw docstring

parse-host-and-portclj

(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.
raw docstring

parse-portclj

(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.
raw docstring

parse-portsclj

(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.
raw docstring

parse-server-hostsclj

(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.
raw docstring

parse-server-listclj

(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.
raw docstring

parse-serversclj

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close