Versions in this module Expand all Collapse all v1 v1.1.0 May 8, 2023 Changes in this version type ResolverConfig + FallbackDatacenters []string v1.0.1 Sep 14, 2021 Changes in this version + type Balancer interface + Select func() (*api.ServiceEntry, error) + UpdateTargets func(targets []*api.ServiceEntry) + type DialFn func(ctx context.Context, network, addr string) (net.Conn, error) + type LoadBalancedTransport struct + func NewLoadBalancedTransport(conf TransportConfig) (*LoadBalancedTransport, error) + func (t *LoadBalancedTransport) RoundTrip(req *http.Request) (*http.Response, error) + type LogFn func(format string, args ...interface{}) + type Resolver interface + Resolve func(context.Context) (ServiceAddress, error) + ServiceName func() string + type ResolverConfig struct + Balancer Balancer + Client *api.Client + Log LogFn + Query *api.QueryOptions + ServiceSpec ServiceSpec + type ServiceAddress struct + Host string + Port int + type ServiceProvider interface + ServiceMultipleTags func(service string, tags []string, passingOnly bool, q *api.QueryOptions) ([]*api.ServiceEntry, *api.QueryMeta, error) + type ServiceResolver struct + func NewConsulResolver(ctx context.Context, conf ResolverConfig) (*ServiceResolver, error) + func (r *ServiceResolver) Resolve(ctx context.Context) (ServiceAddress, error) + func (r *ServiceResolver) ServiceName() string + type ServiceSpec struct + IncludeUnhealthy bool + ServiceName string + ServicePort int + Tags []string + type TransportConfig struct + Base http.RoundTripper + Log LogFn + NetResolverFallback bool + Resolvers []Resolver v1.0.0 Sep 14, 2021