mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
23 lines
383 B
Go
23 lines
383 B
Go
package proxy
|
|
|
|
import (
|
|
"io"
|
|
"net"
|
|
)
|
|
|
|
type Type string
|
|
|
|
const (
|
|
TypeDirectNoProxy Type = "DirectNoProxy"
|
|
TypeWireGuard Type = "WireGuard"
|
|
TypeDummy Type = "Dummy"
|
|
TypeNoProxy Type = "NoProxy"
|
|
)
|
|
|
|
type Proxy interface {
|
|
io.Closer
|
|
// Start creates a local remoteConn and starts proxying data from/to remoteConn
|
|
Start(remoteConn net.Conn) error
|
|
Type() Type
|
|
}
|