crew

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: AGPL-3.0 Imports: 27 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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