Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxReadSize = 4096 MaxRetryTime = 3 )
Variables ¶
View Source
var ProxyProtocol protocol.ID = "/libp2p/tunnel-proxy/1.0.0"
Functions ¶
This section is empty.
Types ¶
type ProxyOptions ¶
type ProxyService ¶
type ProxyService struct {
// contains filtered or unexported fields
}
func NewProxyService ¶
func NewProxyService(h host.Host) *ProxyService
func (*ProxyService) GetProxyStream ¶
func (ps *ProxyService) GetProxyStream(opts ProxyOptions) (*libp2p.StreamConn, error)
func (*ProxyService) ProxyStreamHandler ¶
func (ps *ProxyService) ProxyStreamHandler(stream network.Stream)
func (*ProxyService) TryConnectEndpoint ¶
Click to show internal directories.
Click to hide internal directories.