meter: export labels len method
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
20ff5eed22
commit
47e75c31c7
@ -110,6 +110,10 @@ func (ls Labels) Append(nls Labels) Labels {
|
|||||||
return ls
|
return ls
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ls Labels) Len() int {
|
||||||
|
return len(ls.keys)
|
||||||
|
}
|
||||||
|
|
||||||
// LabelIter holds the
|
// LabelIter holds the
|
||||||
type LabelIter struct {
|
type LabelIter struct {
|
||||||
labels Labels
|
labels Labels
|
||||||
|
Loading…
Reference in New Issue
Block a user