Documentation
¶
Index ¶
Constants ¶
const FeatureSSHRendezvous = "ssh-rendezvous-v1"
FeatureSSHRendezvous marks the unencrypted PAKE negotiation for a shared SSH terminal. Relays may use this fixed marker for aggregate telemetry; it contains no invitation, room, role, or terminal data.
Variables ¶
var ErrMessageTooLarge = errors.New("message too large after decompression")
ErrMessageTooLarge indicates that a message would exceed the maximum JSON size accepted by Decode after decompression.
Functions ¶
Types ¶
type Message ¶
type Message struct {
Type Type `json:"t,omitempty"`
Version int `json:"v,omitempty"`
Message string `json:"m,omitempty"`
Bytes []byte `json:"b,omitempty"`
Bytes2 []byte `json:"b2,omitempty"`
Num int `json:"n,omitempty"`
Features []string `json:"f,omitempty"`
}
Message is the possible payload for messaging
func DecodeWithLimit ¶
DecodeWithLimit decodes a message while bounding its decompressed JSON size.
type Type ¶
type Type string
Type is a message type
const ( TypePAKE Type = "pake" TypePAKEConfirm Type = "pake-confirm" TypeTailcatOffer Type = "tailcat-offer" TypeTailcatStatus Type = "tailcat-status" TypeTransportSelect Type = "transport-select" TypeExternalIP Type = "externalip" TypeFinished Type = "finished" TypeError Type = "error" TypeCloseRecipient Type = "close-recipient" TypeCloseSender Type = "close-sender" TypeRecipientReady Type = "recipientready" TypeFileInfo Type = "fileinfo" TypeFileInfoStart Type = "fileinfo-start" TypeFileInfoBatch Type = "fileinfo-batch" TypeFileInfoEnd Type = "fileinfo-end" TypeFilePrepared Type = "file-prepared" TypeExactHashRequest Type = "exact-hash-request" TypeExactHashResult Type = "exact-hash-result" TypeRelayStandby Type = "relay-standby" TypeRelayRamp Type = "relay-ramp" TypeSSHAuthorize Type = "ssh-authorize" TypeSSHOffer Type = "ssh-offer" )