grpcgoogle.golang.org/grpc/internal/proxyattributes Index | Files

package proxyattributes

import "google.golang.org/grpc/internal/proxyattributes"

Package proxyattributes contains functions for getting and setting proxy attributes like the CONNECT address and user info.

Index

Functions

func Set

func Set(addr resolver.Address, opts Options) resolver.Address

Set returns a copy of addr with opts set in its attributes.

Types

type Options

type Options struct {
	User        url.Userinfo
	ConnectAddr string
}

Options holds the proxy connection details needed during the CONNECT handshake.

func Get

func Get(addr resolver.Address) (Options, bool)

Get returns the Options for the proxy resolver.Address and a boolean value representing if the attribute is present or not.

Source Files

proxyattributes.go

Version
v1.70.0 (latest)
Published
Jan 23, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
23 minutes ago

Tools for package owners.