mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +08:00
Add RegistryReader interface for read-only registry
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
type sessionCollector struct {
|
||||
prefix string
|
||||
r session.Registry
|
||||
r session.RegistryReader
|
||||
collectors []string
|
||||
totalDescr *metric.Description
|
||||
limitDescr *metric.Description
|
||||
@@ -20,7 +20,7 @@ type sessionCollector struct {
|
||||
maxRxBitrateDescr *metric.Description
|
||||
}
|
||||
|
||||
func NewSessionCollector(r session.Registry, collectors []string) metric.Collector {
|
||||
func NewSessionCollector(r session.RegistryReader, collectors []string) metric.Collector {
|
||||
c := &sessionCollector{
|
||||
prefix: "session",
|
||||
r: r,
|
||||
|
Reference in New Issue
Block a user