Documentation ¶
Overview ¶
Package resolver provides a mechanism to resolve a vtworker or vtctld hostname to multiple addresses. This is useful for trying to execute a command on all available tasks e.g. if multiple vtworker instances are running.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
Resolve tries to resolve "hostname" to all available addresses ("ip:port") and returns them. From all registered Resolvers, it uses the first one whose registration key matches the prefix of the hostname. If the resolver returned no results, an error will be returned. If no resolver did match, the hostname will be returned as the only address. If multiple addresses are returned, the list will be shuffled.
Types ¶
Click to show internal directories.
Click to hide internal directories.