mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 00:34:01 +03:00
FILE / ScuroNeko/mtg
protocol/base_protocol.go
Исходный файл и его история в репозитории.
22 lines
488 B
Go
22 lines
488 B
Go
package protocol
|
|
|
|
import "github.com/9seconds/mtg/conntypes"
|
|
|
|
type BaseProtocol struct {
|
|
ConnectionType conntypes.ConnectionType
|
|
ConnectionProtocol conntypes.ConnectionProtocol
|
|
DC conntypes.DC
|
|
}
|
|
|
|
func (b *BaseProtocol) GetConnectionType() conntypes.ConnectionType {
|
|
return b.ConnectionType
|
|
}
|
|
|
|
func (b *BaseProtocol) GetConnectionProtocol() conntypes.ConnectionProtocol {
|
|
return b.ConnectionProtocol
|
|
}
|
|
|
|
func (b *BaseProtocol) GetDC() conntypes.DC {
|
|
return b.DC
|
|
}
|