From 0ceabb37b0688a2d5c47926d6df61cff9ca45004 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Fri, 18 Dec 2015 12:44:39 -0500 Subject: [PATCH] Move blkiodev package to types. Signed-off-by: David Calavera --- blkiodev/blkiodev.go | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 blkiodev/blkiodev.go diff --git a/blkiodev/blkiodev.go b/blkiodev/blkiodev.go deleted file mode 100644 index e9a3649..0000000 --- a/blkiodev/blkiodev.go +++ /dev/null @@ -1,25 +0,0 @@ -package blkiodev - -import ( - "fmt" -) - -// WeightDevice is a structure that hold device:weight pair -type WeightDevice struct { - Path string - Weight uint16 -} - -func (w *WeightDevice) String() string { - return fmt.Sprintf("%s:%d", w.Path, w.Weight) -} - -// ThrottleDevice is a structure that hold device:rate_per_second pair -type ThrottleDevice struct { - Path string - Rate uint64 -} - -func (t *ThrottleDevice) String() string { - return fmt.Sprintf("%s:%d", t.Path, t.Rate) -}