mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 18:54:02 +03:00
FILE / ScuroNeko/mtg
stats/interfaces.go
Исходный файл и его история в репозитории.
61 lines
1.1 KiB
Go
61 lines
1.1 KiB
Go
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 AuthenticationFailedInterface interface {
|
|
AuthenticationFailed()
|
|
}
|
|
|
|
type CloakedRequestInterface interface {
|
|
CloakedRequest()
|
|
}
|
|
|
|
type Interface interface {
|
|
IngressTrafficInterface
|
|
EgressTrafficInterface
|
|
ClientConnectedInterface
|
|
ClientDisconnectedInterface
|
|
TelegramConnectedInterface
|
|
TelegramDisconnectedInterface
|
|
CrashInterface
|
|
ReplayDetectedInterface
|
|
AuthenticationFailedInterface
|
|
CloakedRequestInterface
|
|
}
|