Types

package
v0.942.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationMethod

type AuthenticationMethod func(username []byte, password []byte) bool

type IOFilter

type IOFilter func(address net.IP) bool

type LoggingMethod

type LoggingMethod func(args ...interface{})

type Pipe

type Pipe interface {
	SetLoggingMethod(LoggingMethod) error
	SetInboundFilter(IOFilter) error
	SetOutboundFilter(IOFilter) error
	Serve() error
	SetTries(int) error
	SetTimeout(time.Duration) error
}

type ProxyProtocol

type ProxyProtocol interface {
	SetLoggingMethod(LoggingMethod) error
	SetAuthenticationMethod(AuthenticationMethod) error
	Handle(net.Conn, *bufio.Reader, *bufio.Writer) error
	SetTries(int) error
	SetTimeout(time.Duration) error
	SetInboundFilter(IOFilter) error
	SetOutboundFilter(IOFilter) error
}

Jump to

Keyboard shortcuts

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