Skip to content

Commit

Permalink
Merge pull request #123 from tranchitella/portforward
Browse files Browse the repository at this point in the history
Updates to the port forward model
  • Loading branch information
tranchitella committed Mar 22, 2021
2 parents 8cee8f5 + b94a9dc commit 42186ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ws/portforward/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const (
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"
Expand All @@ -36,10 +38,13 @@ const (
PortForwardProtocolUDP = "udp"
)

// PropertyConnectionID is the name of the property holding the connection ID
const PropertyConnectionID = "connection_id"

// PortForwardNew represents a new port forwarding request
type PortForwardNew struct {
RemoteHost *string `msgpack:"remote_host" json:"remote_host"`
RemotePort *uint `msgpack:"remote_port" json:"remote_port"`
RemotePort *uint16 `msgpack:"remote_port" json:"remote_port"`
Protocol *PortForwardProtocol `msgpack:"protocol" json:"protocol"`
}

Expand Down

0 comments on commit 42186ab

Please sign in to comment.