tcp

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware added in v0.7.1

type Middleware struct {
	Name string
	Conn func(lconn *net.TCPConn) error
}

type Router

type Router struct {
	EntryPoints []string `cfg:"entrypoints"`
	Middlewares []string `cfg:"middlewares"`
}

type TCP

type TCP struct {
	Routers     map[string]Router        `cfg:"routers"`
	Middlewares map[string]TCPMiddleware `cfg:"middlewares"`
}

func (*TCP) Set

func (h *TCP) Set(ctx context.Context, wg *sync.WaitGroup) error

type TCPMiddleware

type TCPMiddleware struct {
	RedirectMiddleware    *redirect.Redirect       `cfg:"redirect"`
	Socks5Middleware      *socks5.Socks5           `cfg:"socks5"`
	IPAllowListMiddleware *ipallowlist.IPAllowList `cfg:"ip_allow_list"`
}

func (*TCPMiddleware) Set

func (h *TCPMiddleware) Set(ctx context.Context, name string) error

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

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