Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPreferencer ¶
NewPreferencer builds up a preferencer with a set of preference options. This can then be used with Choose to select preferences from among a set of IP addresses and DNS names.
Supported options: WithPreferenceOrder
Types ¶
type Option ¶
type Option func(*options) error
Option - how Options are passed as arguments
func WithDnsNames ¶
WithDnsNames contains DNS names to add into the endpoint possibilities
func WithIpAddrs ¶
WithIpAddrs contains IP addresses to add into the endpoint possibilities. If an IP cannot be parsed, this function will error.
func WithPreferenceOrder ¶
WithPreferenceOrder contains the preference order specification. If one of the preferences cannot be parsed, this function will error. Internally it builds up a set of matchers.
Click to show internal directories.
Click to hide internal directories.