proxy

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INDIHubTunnel

type INDIHubTunnel interface {
	Send(*indihub.Response) error
	Recv() (*indihub.Request, error)
	CloseSend() error
}

type PublicServerAddr

type PublicServerAddr struct {
	Name string
	Addr string
}

type TcpProxy

type TcpProxy struct {
	Name   string
	Addr   string
	Tunnel INDIHubTunnel
	// contains filtered or unexported fields
}

func New

func New(name string, addr string, tunnel INDIHubTunnel, filter *hostutils.INDIFilter) *TcpProxy

func (*TcpProxy) Close

func (p *TcpProxy) Close()

func (*TcpProxy) Start

func (p *TcpProxy) Start(pubAddrChan chan PublicServerAddr, sessionID uint64, sessionToken string)

Jump to

Keyboard shortcuts

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