Add required things for middlehandshake

This commit is contained in:
9seconds
2019-09-10 13:54:14 +03:00
parent 691954bd16
commit 1617866c24
6 changed files with 121 additions and 22 deletions
+1 -5
View File
@@ -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