mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 14:54:01 +03:00
Add required things for middlehandshake
This commit is contained in:
@@ -12,9 +12,5 @@ type ClientProtocol interface {
|
||||
DC() conntypes.DC
|
||||
}
|
||||
|
||||
type TelegramProtocol interface {
|
||||
Handshake(*TelegramRequest) (wrappers.Wrap, error)
|
||||
}
|
||||
|
||||
type TelegramProtocol func(*TelegramRequest) (wrappers.Wrap, error)
|
||||
type ClientProtocolMaker func() ClientProtocol
|
||||
type TelegramProtocolMaker func() TelegramProtocol
|
||||
|
||||
Reference in New Issue
Block a user