controllerutils

package
v1.0.3-alpha.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EchoContextKeyChainID   = "chainid"
	EchoContextKeyOperation = "operation"
)

both used by the prometheus metrics middleware

Variables

This section is empty.

Functions

func ChainFromParams

func ChainFromParams(c echo.Context, cs interfaces.ChainService) (chain.Chain, isc.ChainID, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL