crew

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

View Source
const ConnectOpType string = "connect"

Variables

This section is empty.

Functions

func EnableConnecting

func EnableConnecting(my *hub.Hub)

func HandleSluiceRequest

func HandleSluiceRequest(connInfo *network.Connection, conn net.Conn)

Types

type ConnectOp

type ConnectOp struct {
	terminal.OpBase
	*terminal.DuplexFlowQueue
	// contains filtered or unexported fields
}

func NewConnectOp

func NewConnectOp(t terminal.OpTerminal, request *ConnectRequest, conn net.Conn) (*ConnectOp, *terminal.Error)

func (*ConnectOp) Abandon

func (op *ConnectOp) Abandon(err *terminal.Error)

func (*ConnectOp) Ctx

func (op *ConnectOp) Ctx() context.Context

func (*ConnectOp) Deliver

func (op *ConnectOp) Deliver(c *container.Container) *terminal.Error

func (*ConnectOp) End

func (op *ConnectOp) End(err *terminal.Error)

func (*ConnectOp) FmtID

func (op *ConnectOp) FmtID() string

func (*ConnectOp) Type

func (op *ConnectOp) Type() string

type ConnectRequest

type ConnectRequest struct {
	Domain    string
	IP        net.IP
	Protocol  packet.IPProtocol
	Port      uint16
	QueueSize uint16
}

func (*ConnectRequest) Address

func (r *ConnectRequest) Address() string

func (*ConnectRequest) String

func (r *ConnectRequest) String() string

type Tunnel

type Tunnel struct {
	// contains filtered or unexported fields
}

type TunnelContext added in v0.3.5

type TunnelContext struct {
	Path       []*TunnelContextHop
	PathCost   float32
	RoutingAlg string
}

TunnelContext holds additional information about the tunnel to be added to a connection.

type TunnelContextHop added in v0.3.5

type TunnelContextHop struct {
	ID   string
	Name string
	IPv4 *TunnelContextHopIPInfo `json:",omitempty"`
	IPv6 *TunnelContextHopIPInfo `json:",omitempty"`
}

type TunnelContextHopIPInfo added in v0.3.5

type TunnelContextHopIPInfo struct {
	IP      net.IP
	Country string
	ASN     uint
	ASOwner string
}

Jump to

Keyboard shortcuts

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