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 } 15