From ec2ccf69d8b08abb03fa3bdb3e7e95ae1862d619 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Tue, 23 May 2023 17:58:14 -0400 Subject: Major Update/Refactor to Support IETF 02 Beginning of a release candidate for support for IETF 02 tag of the responsiveness spec. --- lgc/lgc.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lgc/lgc.go') 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 -- cgit v1.2.3