You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
498 B
Go

package nnet
import (
metricspkg "github.com/noahlann/nnet/pkg/metrics"
)
// Metrics 指标类型别名
type Metrics = metricspkg.Metrics
// NewMetrics 创建指标实例
func NewMetrics() Metrics {
return metricspkg.NewMetrics()
}
// PrometheusExporter 导出器类型别名
type PrometheusExporter = metricspkg.PrometheusExporter
// NewPrometheusExporter 创建 Prometheus 导出器
func NewPrometheusExporter(m Metrics) *PrometheusExporter {
return metricspkg.NewPrometheusExporter(m)
}