haproxy

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package haproxy implements the handshake for the HAProxy client protocol version 1, as described in https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handshake

func Handshake(r *bufio.Reader) (src, dst net.Addr, err error)

Handshake performs the HAProxy protocol v1 handshake on the given reader, which is expected to be backed by a network connection. It returns the source and destination addresses, or an error if the handshake could not complete. Note that any timeouts or limits must be set by the caller on the underlying connection, this is helper only to perform the handshake.

Types

This section is empty.

Jump to

Keyboard shortcuts

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