multiresolver

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 16

README

grpc-multi-resolver

Package multiresolver allows you to Dial to multiple hosts/IPs as a single ClientConn.

Make sure to import this package:

import _ "github.com/Jille/grpc-multi-resolver"

and then you can use it with grpc.Dial():

grpc.Dial("multi:///127.0.0.1:1234,dns://example.org:1234")

Note the triple slash at the beginning.

Note: The ServiceConfig and Attributes from the first target are used, the rest are ignored.

Documentation

Overview

* Package multiresolver allows you to Dial to multiple hosts/IPs as a single ClientConn. * * Usage: multi:///127.0.0.1:1234,dns://example.org:1234 * Note the triple slash at the beginning. * * Make sure to import this package: * ``` * import _ "github.com/Jille/grpc-multi-resolver" * ```

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTarget

func ParseTarget(target string) (ret resolver.Target)

ParseTarget parses target into resolver.Target URL

If target is not a valid URL, it returns {URL: {Path: target}}.

Types

This section is empty.

Jump to

Keyboard shortcuts

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