proxy

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

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 ProxyOptions struct {
	Protocol string
	NodeName string
	IP       string
	Port     int32
}

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

func (ps *ProxyService) TryConnectEndpoint(msg *pb.Proxy) (conn net.Conn, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL