Documentation ¶
Index ¶
Constants ¶
View Source
const ( EchoContextKeyChainID = "chainid" EchoContextKeyOperation = "operation" )
both used by the prometheus metrics middleware
Variables ¶
This section is empty.
Functions ¶
func ChainIDFromParams ¶
func ChainIDFromParams(c echo.Context, cs interfaces.ChainService) (isc.ChainID, error)
func SetOperation ¶
func SetOperation(c echo.Context, op string)
sets the label of the operation (endpoint being called) to be used by the prometheus metrics middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.