package
0.3.0-rc2
Repository: https://github.com/primevprotocol/mev-commit.git
Documentation: pkg.go.dev
# Functions
BindJSON helper is used to bind the request body to the given type.
MethodHandler helper is used to wrap a handler and ensure that the request method matches the given method.
New creates a new Service.
WriteResponse helper is used to write a response to the client with the given code and message.
# Structs
Service wraps http.Server with additional functionality for metrics and other common middlewares.
StatusResponse is a helper struct used to wrap a string message with a status code.