summaryrefslogtreecommitdiff
path: root/lgc/lgc.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2023-05-23 17:58:14 -0400
committerWill Hawkins <[email protected]>2023-06-21 09:12:22 -0400
commitec2ccf69d8b08abb03fa3bdb3e7e95ae1862d619 (patch)
tree6b636bdbda82db40da89a2bde213c684542850dc /lgc/lgc.go
parent5558f0347baaf6db066314f0eaf82d7fb552b2f7 (diff)
Major Update/Refactor to Support IETF 02
Beginning of a release candidate for support for IETF 02 tag of the responsiveness spec.
Diffstat (limited to 'lgc/lgc.go')
-rw-r--r--lgc/lgc.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/lgc/lgc.go b/lgc/lgc.go
index db73efa..3b77015 100644
--- a/lgc/lgc.go
+++ b/lgc/lgc.go
@@ -31,6 +31,23 @@ type LoadGeneratingConnection interface {
ClientId() uint64
Stats() *stats.TraceStats
WaitUntilStarted(context.Context) bool
+ Direction() LgcDirection
+}
+
+type LgcDirection int
+
+const (
+ LGC_DOWN LgcDirection = iota
+ LGC_UP
+)
+
+func (direction LgcDirection) String() string {
+ if direction == LGC_DOWN {
+ return "Download"
+ } else if direction == LGC_UP {
+ return "Upload"
+ }
+ return "Invalid load-generating connection direction"
}
type LgcStatus int