SetAuth sets the authentication information.
(authType, authValue string)
| 83 | |
| 84 | // SetAuth sets the authentication information. |
| 85 | func SetAuth(authType, authValue string) { |
| 86 | auth = &rpcmetadata.MD{ |
| 87 | AuthType: authType, |
| 88 | AuthValue: authValue, |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | // requestInterceptor is a gRPC interceptor logging the request payload |
| 93 | func requestInterceptor(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error { |