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

Function Creds

server.go:476–480  ·  view source on GitHub ↗

Creds returns a ServerOption that sets credentials for server connections.

(c credentials.TransportCredentials)

Source from the content-addressed store, hash-verified

474
475// Creds returns a ServerOption that sets credentials for server connections.
476func Creds(c credentials.TransportCredentials) ServerOption {
477 return newFuncServerOption(func(o *serverOptions) {
478 o.creds = c
479 })
480}
481
482// UnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the
483// server. Only one unary interceptor can be installed. The construction of multiple

Calls 1

newFuncServerOptionFunction · 0.85