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" )
Click to show internal directories.
Click to hide internal directories.