Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNS ¶
type DNS interface { FindService(serviceName string) (*ServiceLocation, error) GetHttpUrl(serviceName string, useTLS bool) (url.URL, error) }
DNS balancer finds services through dns and balances load across them
func NewMapBalancer ¶
NewMapBalancer will return the URL from the configured map name -> URL:port
func NewMockDNSBalancer ¶
func NewMockDNSBalancer(services map[string]*ServiceLocation) DNS
type ServiceLocation ¶
ServiceLocation is a represensation of where a service lives
Click to show internal directories.
Click to hide internal directories.