Back to godoc.org

Package protocol

v1.0.7
Latest Go to latest

The latest major version is .

Published: Sep 21, 2020 | License: MIT | Module: github.com/9seconds/mtg

Index

type ClientProtocol

type ClientProtocol interface {
	Handshake(conntypes.StreamReadWriteCloser) (conntypes.StreamReadWriteCloser, error)
	ConnectionType() conntypes.ConnectionType
	ConnectionProtocol() conntypes.ConnectionProtocol
	DC() conntypes.DC
}

type ClientProtocolMaker

type ClientProtocolMaker func() ClientProtocol

type TelegramRequest

type TelegramRequest struct {
	Logger         *zap.SugaredLogger
	ClientConn     conntypes.StreamReadWriteCloser
	ConnID         conntypes.ConnID
	Ctx            context.Context
	Cancel         context.CancelFunc
	ClientProtocol ClientProtocol
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier