meter: export labels len method

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-02-18 14:41:51 +03:00
parent 20ff5eed22
commit 47e75c31c7

View File

@ -110,6 +110,10 @@ func (ls Labels) Append(nls Labels) Labels {
return ls
}
func (ls Labels) Len() int {
return len(ls.keys)
}
// LabelIter holds the
type LabelIter struct {
labels Labels