Creds returns a ServerOption that sets credentials for server connections.
(c credentials.TransportCredentials)
| 474 | |
| 475 | // Creds returns a ServerOption that sets credentials for server connections. |
| 476 | func 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 |