mux

package
v0.0.0-...-a36a61a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadProxyMessage

func ReadProxyMessage(conn net.Conn, msg proto.Message) error

ReadProxyMessage reads a protobuf message from a connection

func UpgradeToBindingConnection

func UpgradeToBindingConnection(log logr.Logger, conn net.Conn, host string, port int) (resp *pb_agent.ConnResponse, err error)

UpgradeToBindingConnection upgrades a connection to a binding connection by exchanging header information with the server. It may return a BindingUpgradeFailure error if the server can't upgrade the connection. The underlying connection may also return an error if the connection is closed or otherwise fails.

func WriteProxyMessage

func WriteProxyMessage(conn net.Conn, msg proto.Message) error

WriteProxyMessage writes a protobuf message to a connection

Types

type BindingUpgradeFailure

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

func (*BindingUpgradeFailure) Error

func (e *BindingUpgradeFailure) Error() string

Jump to

Keyboard shortcuts

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