Creates an http.Handler that will run a handler with the given method even if the target DB is offline
(server *ServerContext, privs handlerPrivs, accessPermissions []Permission, responsePermissions []Permission, method handlerMethod)
| 151 | |
| 152 | // Creates an http.Handler that will run a handler with the given method even if the target DB is offline |
| 153 | func makeOfflineHandler(server *ServerContext, privs handlerPrivs, accessPermissions []Permission, responsePermissions []Permission, method handlerMethod) http.Handler { |
| 154 | return makeHandlerWithOptions(server, privs, accessPermissions, responsePermissions, method, handlerOptions{ |
| 155 | runOffline: true, |
| 156 | }) |
| 157 | } |
| 158 | |
| 159 | // makeMetadataDBOfflineHandler creates an http.Handler that will run a handler with the given method even if the target DB couldn't be instantiated |
| 160 | func makeMetadataDBOfflineHandler(server *ServerContext, privs handlerPrivs, accessPermissions []Permission, responsePermissions []Permission, method handlerMethod) http.Handler { |
no test coverage detected