Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Connector = func(ctx context.Context, addr string, peerKey ed25519.PublicKey, ourKey ed25519.PrivateKey) (ADNL, error) { return adnl.Connect(ctx, addr, peerKey, ourKey) }
View Source
var ErrSiteUsesStorage = fmt.Errorf("requested site is static and uses ton storage, you can files using storage.Downloader")
View Source
var Logger = log.Println
Functions ¶
func ParseADNLAddress ¶
func SerializeADNLAddress ¶
Types ¶
type ADNLGateway ¶ added in v1.6.0
type GetNextPayloadPart ¶
type PayloadPart ¶
type RLDP ¶
type RLDP interface { Close() DoQuery(ctx context.Context, maxAnswerSize int64, query, result tl.Serializable) error SetOnQuery(handler func(transferId []byte, query *rldp.Query) error) SetOnDisconnect(handler func()) SendAnswer(ctx context.Context, maxAnswerSize int64, queryId, transferId []byte, answer tl.Serializable) error }
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func NewTransport(dht DHT, resolver Resolver, adnlKey ...ed25519.PrivateKey) *Transport
Click to show internal directories.
Click to hide internal directories.