Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterForServer ¶
func RegisterForServer(registry prometheus.Registerer)
func RunForServer ¶
func SetDreamkastMetricsToCtx ¶
func SetDreamkastMetricsToCtx(ctx context.Context, m DreamkastMetricsIface) context.Context
Types ¶
type DreamkastMetricsDao ¶
type DreamkastMetricsDao struct {
// contains filtered or unexported fields
}
func NewDreamkastMetricsDao ¶
func NewDreamkastMetricsDao(endpointUrl string) *DreamkastMetricsDao
func (DreamkastMetricsDao) ListTalks ¶
func (dao DreamkastMetricsDao) ListTalks(d time.Duration)
func (DreamkastMetricsDao) ListTracks ¶
func (dao DreamkastMetricsDao) ListTracks(d time.Duration)
func (DreamkastMetricsDao) UpdateTalk ¶
func (dao DreamkastMetricsDao) UpdateTalk(d time.Duration)
type DreamkastMetricsFake ¶
type DreamkastMetricsFake struct{}
func (DreamkastMetricsFake) ListTalks ¶
func (DreamkastMetricsFake) ListTalks(time.Duration)
func (DreamkastMetricsFake) ListTracks ¶
func (DreamkastMetricsFake) ListTracks(time.Duration)
func (DreamkastMetricsFake) UpdateTalk ¶
func (DreamkastMetricsFake) UpdateTalk(time.Duration)
type DreamkastMetricsIface ¶
type DreamkastMetricsIface interface { ListTracks(time.Duration) ListTalks(time.Duration) UpdateTalk(time.Duration) }
func DreamkastMetricsFromCtx ¶
func DreamkastMetricsFromCtx(ctx context.Context) DreamkastMetricsIface
Click to show internal directories.
Click to hide internal directories.