proxyprotocol

package
v0.0.1-rc9 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyProtocol

type ProxyProtocol interface {
	Version() string
	Protocol() string
	Source() net.Addr
	Destination() net.Addr
}

ProxyProtocol gives minimal information about the detected protocol

type Reader

type Reader interface {
	io.Reader

	ProxyProtocol() (ProxyProtocol, bool)
	Error() error // proxy protocol related error
}

Reader with proxy protocol support

func NewReader

func NewReader(r io.Reader, v1, v2 bool) Reader

NewReader create proxy protocol reader for the proxy protocol inner and/or outer

Jump to

Keyboard shortcuts

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