[tor-commits] [snowflake/main] Add EventOnProxyConnectionOver Event
    shelikhoo at torproject.org 
    shelikhoo at torproject.org
       
    Mon Jan 31 12:04:25 UTC 2022
    
    
  
commit d64af3139496481436f8870f4f43f43dca0d4552
Author: Shelikhoo <xiaokangwang at outlook.com>
Date:   Mon Dec 20 13:23:33 2021 +0000
    Add EventOnProxyConnectionOver Event
---
 common/event/interface.go | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/common/event/interface.go b/common/event/interface.go
index 697f2b7..b41d7c3 100644
--- a/common/event/interface.go
+++ b/common/event/interface.go
@@ -28,6 +28,12 @@ type EventOnSnowflakeConnectionFailed struct {
 	Error error
 }
 
+type EventOnProxyConnectionOver struct {
+	SnowflakeEvent
+	InboundTraffic  int
+	OutboundTraffic int
+}
+
 type SnowflakeEventReceiver interface {
 	// OnNewSnowflakeEvent notify receiver about a new event
 	// This method MUST not block
    
    
More information about the tor-commits
mailing list