Documentation ¶
Overview ¶
Ytl Copyright (C) 2022 DomesticMoth <silkmoth@protonmail.com>
This file is part of Ytl.
Ytl is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
Ytl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Ytl Copyright (C) 2022 DomesticMoth <silkmoth@protonmail.com>
This file is part of Ytl.
Ytl is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
Ytl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Index ¶
Constants ¶
const TcpScheme = "tcp"
Variables ¶
This section is empty.
Functions ¶
func DEFAULT_TRANSPORTS ¶
Types ¶
type TcpTransport ¶
type TcpTransport struct{}
func (TcpTransport) Connect ¶
func (t TcpTransport) Connect(ctx context.Context, uri url.URL, proxy *url.URL, key ed25519.PrivateKey) (static.ConnResult, error)
func (TcpTransport) GetScheme ¶
func (t TcpTransport) GetScheme() string
func (TcpTransport) Listen ¶
func (t TcpTransport) Listen(ctx context.Context, uri url.URL, key ed25519.PrivateKey) (static.TransportListener, error)