Skip to main content

Module util

Module util 

Source

Structsยง

ErrorHandler ๐Ÿ”’
A wrapper for error handling in admin services.

Functionsยง

ensure_leader ๐Ÿ”’
Uses the same leadership predicate as the metasrv gRPC procedure service.
to_json_response
Returns a 200 response with a JSON body.
to_not_found_response
Returns a 404 response with an empty body.
to_text_response
Returns a 200 response with a text body.