Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPrometheusConfig ¶
func DefaultPrometheusConfig() *prometheusConfig
DefaultPrometheusConfig returns a default PrometheusConfig pointer
Types ¶
type OrderMetric ¶
type OrderMetric struct { FullFilledNum metrics.Gauge PendingNum metrics.Gauge CanceledNum metrics.Gauge ExpiredNum metrics.Gauge PartialFilledNum metrics.Gauge }
OrderMetric is the struct of metric in order module
func DefaultOrderMetrics ¶
func DefaultOrderMetrics(config *prometheusConfig) *OrderMetric
DefaultOrderMetrics returns Metrics build using Prometheus client library if Prometheus is enabled Otherwise, it returns no-op Metrics
func NewOrderMetrics ¶
func NewOrderMetrics(labelsAndValues ...string) *OrderMetric
NewOrderMetrics returns a pointer of a new OrderMetric object
func NopOrderMetrics ¶
func NopOrderMetrics() *OrderMetric
NopOrderMetrics returns a pointer of a no-op Metrics
type StreamMetrics ¶
StreamMetrics is the struct of metric in stream module
func DefaultStreamMetrics ¶
func DefaultStreamMetrics(config *prometheusConfig) *StreamMetrics
DefaultStreamMetrics returns Metrics build using Prometheus client library if Prometheus is enabled Otherwise, it returns no-op Metrics
func NewStreamMetrics ¶
func NewStreamMetrics(labelsAndValues ...string) *StreamMetrics
NewStreamMetrics returns a pointer of a new StreamMetrics object
func NopStreamMetrics ¶
func NopStreamMetrics() *StreamMetrics
NopStreamMetrics returns a pointer of no-op Metrics