grpc

package
v0.0.0-...-835b7ae Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package grpc implements a Cloud Map resolver. It sends the targets without scheme back to gRPC as resolved addresses.

Based upon google.golang.org/grpc/resolver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(opts ...BuilderOption) resolver.Builder

NewBuilder builds a new Cloud Map resolver builder. NewBuilder can be used inline with a grpc.Dial call.

Example:

conn, err := grpc.Dial("service.namespace:50051", grpc.WithResolvers(cloudmap.NewBuilder())

Types

type BuilderOption

type BuilderOption func(*cloudMapBuilder) error

BuilderOption for passing options to your builder

func WithContext

func WithContext(ctx context.Context) BuilderOption

WithContext adds a context to your builder

Jump to

Keyboard shortcuts

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