resolver

package
v1.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManualResolver

func NewManualResolver(schemeName string, serviceName string, endpointAddrs []string) error

FIX: NewManualResolver now performs an upsert instead of always creating a new resolver. On re-dial (e.g., after client.Close() + client.Dial()), the scheme+service pair already exists in the resolver map from the first dial. The original code rejected this with "Resolver already registered" — but this is a legitimate reconnect scenario.

Now: if a resolver already exists for the scheme+service, we update its state with the new addresses. If it doesn't exist, we create and register a new one.

func UpdateManualResolver added in v1.0.8

func UpdateManualResolver(schemeName string, serviceName string, endpointAddrs []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL