Caravan.DnsClient behaviour (caravan v1.0.1)

A client for fetching SRV records from DNS and returning.

Summary

Callbacks

Accepts a valid dns record name. Returns a list of {port, host} which can then be used to construct a node name.

Callbacks

get_nodes(name)

@callback get_nodes(name :: binary()) :: [{integer(), binary()}]

Accepts a valid dns record name. Returns a list of {port, host} which can then be used to construct a node name.