tunnel

package
v0.19.37 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialAndRun added in v0.16.20

func DialAndRun(provider FabricProvider, service string, clientConn net.Conn, halfClose bool)

func Run

func Run(zitiConn net.Conn, clientConn net.Conn, halfClose bool)

Types

type FabricProvider added in v0.19.10

type FabricProvider interface {
	PrepForUse(serviceId string) error
	GetCurrentIdentity() (*edge.CurrentIdentity, error)
	TunnelService(conn net.Conn, service string, halfClose bool) error
	HostService(hostCtx HostingContext) (HostControl, error)
}

func NewContextProvider added in v0.19.10

func NewContextProvider(context ziti.Context) FabricProvider

type HostControl added in v0.19.10

type HostControl interface {
	io.Closer
	UpdateCost(cost uint16) error
	UpdatePrecedence(precedence edge.Precedence) error
	UpdateCostAndPrecedence(cost uint16, precedence edge.Precedence) error
}

type HostingContext added in v0.19.10

type HostingContext interface {
	ServiceName() string
	ListenOptions() *ziti.ListenOptions
	Dial() (net.Conn, error)
	SupportHalfClose() bool
	OnClose()
}

Jump to

Keyboard shortcuts

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