| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package stats
-
- import (
- "net"
-
- "github.com/9seconds/mtg/conntypes"
- )
-
- type IngressTrafficInterface interface {
- IngressTraffic(int)
- }
-
- type EgressTrafficInterface interface {
- EgressTraffic(int)
- }
-
- type ClientConnectedInterface interface {
- ClientConnected(conntypes.ConnectionType, *net.TCPAddr)
- }
-
- type ClientDisconnectedInterface interface {
- ClientDisconnected(conntypes.ConnectionType, *net.TCPAddr)
- }
-
- type TelegramConnectedInterface interface {
- TelegramConnected(conntypes.DC, *net.TCPAddr)
- }
-
- type TelegramDisconnectedInterface interface {
- TelegramDisconnected(conntypes.DC, *net.TCPAddr)
- }
-
- type CrashInterface interface {
- Crash()
- }
-
- type ReplayDetectedInterface interface {
- ReplayDetected()
- }
-
- type Interface interface {
- IngressTrafficInterface
- EgressTrafficInterface
- ClientConnectedInterface
- ClientDisconnectedInterface
- TelegramConnectedInterface
- TelegramDisconnectedInterface
- CrashInterface
- ReplayDetectedInterface
- }
|