{"modulePath":"github.com/iotaledger/wasp","version":"v1.5.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controllerutils\n\n## Constants\n\n```go\nconst (\n\tEchoContextKeyChainID   = \"chainid\"\n\tEchoContextKeyOperation = \"operation\"\n)\n```\nboth used by the prometheus metrics middleware\n\n## Functions\n\n```go\nfunc ChainFromParams(c echo.Context, cs interfaces.ChainService) (chain.Chain, isc.ChainID, error)\n```\n\n```go\nfunc ChainIDFromParams(c echo.Context, cs interfaces.ChainService) (isc.ChainID, error)\n```\n\n```go\nfunc SetOperation(c echo.Context, op string)\n```\nsets the label of the operation (endpoint being called) to be used by the prometheus metrics middleware\n\n","path":"github.com/iotaledger/wasp/packages/webapi/controllers/controllerutils","name":"controllerutils","synopsis":"","isRedistributable":true}
