Documentation ¶
Index ¶
Constants ¶
View Source
const (
INVALID = "INVALID"
)
Variables ¶
This section is empty.
Functions ¶
func GetLabelForExchangeId ¶
func GetLabelForExchangeId(exchangeId types.ExchangeId) gometrics.Label
GetLabelForExchangeId converts an exchangeId uint32 into a name and then returns the label with the name.
func GetLabelForMarketId ¶
GetLabelForMarketId converts a marketId uint32 into a human-readable market pair and then returns the label with the market pair.
func GetMarketPairForTelemetry ¶
GetMarketPairForTelemetry returns the market pair string for a given marketId. If the marketId is not found in the map, returns the INVALID string. This method is synchronized.
func SetMarketPairForTelemetry ¶
SetMarketPairForTelemetry sets a market pair to an in-memory map of marketId to marketPair strings used for labelling metrics. This method is synchronized.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.