portforward

package
v0.0.0-...-92d1176 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// MessageTypePortForwardNew is the message type to start a port-forwarding connection
	// The body MUST contain a PortForwardNew object.
	MessageTypePortForwardNew = "new"
	// MessageTypePortForwardStop is the message type to stop a port-forwarding connection
	MessageTypePortForwardStop = "stop"
	// MessageTypePortForward is the message type for streaming data
	MessageTypePortForward = "forward"
	// MessageTypePortForwardAck is the message type for streaming data acknowledgement
	MessageTypePortForwardAck = "ack"
	// MessageTypeError is returned on internal or protocol errors. The
	// body MUST contain an Error object.
	MessageTypeError = "error"
)
View Source
const (
	PortForwardProtocolTCP = "tcp"
	PortForwardProtocolUDP = "udp"
)

Values for the PortForwardProtocol type

View Source
const PropertyConnectionID = "connection_id"

PropertyConnectionID is the name of the property holding the connection ID

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	// The error description, as in "Permission denied while opening a file"
	Error *string `msgpack:"err" json:"error"`
	// Type of message that raised the error
	MessageType *string `msgpack:"msgtype,omitempty" json:"message_type,omitempty"`
}

Error struct is passed in the Body of MsgProto in case the message type is ErrorMessage

type PortForwardNew

type PortForwardNew struct {
	RemoteHost *string              `msgpack:"remote_host" json:"remote_host"`
	RemotePort *uint16              `msgpack:"remote_port" json:"remote_port"`
	Protocol   *PortForwardProtocol `msgpack:"protocol" json:"protocol"`
}

PortForwardNew represents a new port forwarding request

type PortForwardProtocol

type PortForwardProtocol string

PortForwardProtocol stores the protocol

Jump to

Keyboard shortcuts

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