ingress

package
v0.0.0-...-e25560c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ready int32
	Running
	Closed
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingress

type Ingress interface {
	Name() string

	// Most suitation can use multi transports and a proxy
	// to handle incoming packets. Sometimes sources from
	// tun/tap or other uncommon ways are different. So need
	// Type() to distinguish
	Type() IngressType

	// Run create `conn` defined in component/conn
	// Then router handles these connections to egress
	Run(r router.Router)

	Proxy() proxy.Proxy
	Transport() []transport.Transport
	Close() <-chan struct{}
}

type IngressType

type IngressType string
const (
	TypeGeneral IngressType = "GENERAL"
	TypeTun     IngressType = "TUN"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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