1package configs 2 3import ( 4 "fmt" 5) 6 7type IfPrioMap struct { 8 Interface string `json:"interface"` 9 Priority int64 `json:"priority"` 10} 11 12func (i *IfPrioMap) CgroupString() string { 13 return fmt.Sprintf("%s %d", i.Interface, i.Priority) 14} 15