Code Review
/
oom
/
registrator.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9a0395eaf5ff62f87e552db9d6163e376d5954b0
[oom/registrator.git]
/
1
package configs
2
3
import (
4
"fmt"
5
)
6
7
type IfPrioMap struct {
8
Interface string `json:"interface"`
9
Priority int64 `json:"priority"`
10
}
11
12
func (i *IfPrioMap) CgroupString() string {
13
return fmt.Sprintf("%s %d", i.Interface, i.Priority)
14
}