contextWithServer sets the Server in the context.
(ctx context.Context, server *Server)
| 2051 | |
| 2052 | // contextWithServer sets the Server in the context. |
| 2053 | func contextWithServer(ctx context.Context, server *Server) context.Context { |
| 2054 | return context.WithValue(ctx, serverKey{}, server) |
| 2055 | } |
| 2056 | |
| 2057 | // isRegisteredMethod returns whether the passed in method is registered as a |
| 2058 | // method on the server. /service/method and service/method will match if the |