MCPcopy Create free account
hub / github.com/google/go-cloud / GRPCDialOption

Function GRPCDialOption

internal/useragent/useragent.go:39–41  ·  view source on GitHub ↗

GRPCDialOption returns a grpc.DialOption that sets a Go CDK User-Agent.

(api string)

Source from the content-addressed store, hash-verified

37
38// GRPCDialOption returns a grpc.DialOption that sets a Go CDK User-Agent.
39func GRPCDialOption(api string) grpc.DialOption {
40 return grpc.WithUserAgent(userAgentString(api))
41}
42
43// AzureUserAgentPrefix returns a prefix that is used to set Azure SDK User-Agent to help with diagnostics.
44func AzureUserAgentPrefix(api string) string {

Callers 6

NewGCPgRPCConnFunction · 0.92
DialFunction · 0.92
dialEmulatorFunction · 0.92
DialFunction · 0.92
dialEmulatorFunction · 0.92
DialFunction · 0.92

Calls 1

userAgentStringFunction · 0.85

Tested by

no test coverage detected