package
0.0.0-20230306131847-26f457599b8d
Repository: https://github.com/xiaoyawei/buf.git
Documentation: pkg.go.dev

# Functions

DefaultUserAgent returns the default user agent for the given protocol.
DescriptorKind returns a succinct description of the type of the given descriptor.
ErrorHasFilename makes sure that the given error includes a reference to the given filename.
GetAuthority determines the authority for a request with the given URL and request headers.
LoadHeaders computes the set of request headers from the given flag values, loading from file(s) if so instructed.
MakeVerboseTLSConfig constructs a *tls.Config that logs information to the given printer as a TLS connection is negotiated.
NewImageResolver returns a Resolver that uses the given image to resolve symbols and extensions.
NewInvoker creates a new invoker for invoking the method described by the given descriptor.
NewServerReflectionResolver creates a new resolver using the given details to create an RPC reflection client, to ask the server for descriptors.
NewVerboseHTTPClient creates a new HTTP client with the given transport and printing verbose trace information to the given printer.
ParseReflectProtocol parses the ReflectProtocol.
ResolveMethodDescriptor uses the given resolver to find a descriptor for the requested service and method.
TraceTrailersInterceptor returns an interceptor that will print information about trailers for streaming calls to the given printer.

# Constants

ReflectProtocolGRPCV1 represents the gRPC server reflection protocol defined by the service grpc.reflection.v1.ServerReflection.
ReflectProtocolGRPCV1 represents the gRPC server reflection protocol defined by the service grpc.reflection.v1alpha.ServerReflection.
ReflectProtocolUnknown represents that the server reflection protocol is unknown.

# Variables

AllKnownReflectProtocolStrings are all string values for ReflectProtocol that represent known reflection protocols.

# Structs

TLSSettings contains settings related to creating a TLS client.

# Interfaces

Invoker provides the ability to invoke RPCs dynamically.
Resolver is an interface for resolving symbols into descriptors and for looking up extensions.

# Type aliases

ReflectProtocol is a reflection protocol.