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
Click to show internal directories.
Click to hide internal directories.