mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-17 16:11:01 -04:00
8e5eba8735
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
14 lines
236 B
Go
14 lines
236 B
Go
package configs
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type IfPrioMap struct {
|
|
Interface string `json:"interface"`
|
|
Priority int64 `json:"priority"`
|
|
}
|
|
|
|
func (i *IfPrioMap) CgroupString() string {
|
|
return fmt.Sprintf("%s %d", i.Interface, i.Priority)
|
|
}
|