MCPcopy
hub / github.com/grpc/grpc-go / creds

Struct creds

credentials/google/google.go:95–104  ·  view source on GitHub ↗

creds implements credentials.Bundle.

Source from the content-addressed store, hash-verified

93
94// creds implements credentials.Bundle.
95type creds struct {
96 opts DefaultCredentialsOptions
97
98 // Supported modes are defined in internal/internal.go.
99 mode string
100 // The active transport credentials associated with this bundle.
101 transportCreds credentials.TransportCredentials
102 // The active per RPC credentials associated with this bundle.
103 perRPCCreds credentials.PerRPCCredentials
104}
105
106func (c *creds) TransportCredentials() credentials.TransportCredentials {
107 return c.transportCreds

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected