redirect

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redirect

type Redirect struct {
	Address string `cfg:"address"`
	Network string `cfg:"network"`

	DisableNagle bool `cfg:"disable_nagle"`
	Buffer       int  `cfg:"buffer"`

	DialTimeout time.Duration `cfg:"dial_timeout"`

	ProxyProtocol bool `cfg:"proxy_protocol"`
}

func (*Redirect) Middleware

func (m *Redirect) Middleware(ctx context.Context, _ string) (func(lconn *net.TCPConn) error, error)

Jump to

Keyboard shortcuts

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