mirror of
https://github.com/hbahadorzadeh/stunning.git
synced 2025-12-24 13:38:08 +08:00
36 lines
612 B
Go
36 lines
612 B
Go
package common
|
|
|
|
type TunnelType string
|
|
|
|
const (
|
|
HTTP_TUN TunnelType = "http"
|
|
HTTPS_TUN TunnelType = "https"
|
|
TCP_TUN TunnelType = "tcp"
|
|
UDP_TUN TunnelType = "udp"
|
|
TLS_TUN TunnelType = "tls"
|
|
)
|
|
|
|
type InterfaceType string
|
|
|
|
const (
|
|
SOCKS_IFACE InterfaceType = "socks"
|
|
TCP_IFACE InterfaceType = "tcp"
|
|
UDP_IFACE InterfaceType = "udp"
|
|
TUN_IFACE InterfaceType = "tun"
|
|
SERIAL_IFACE InterfaceType = "serial"
|
|
)
|
|
|
|
type PluginMode string
|
|
|
|
const (
|
|
ENC PluginMode = "encoder"
|
|
DEC PluginMode = "decoder"
|
|
)
|
|
|
|
type TunnelMode string
|
|
|
|
const (
|
|
SERVER TunnelMode = "server"
|
|
CLIENT TunnelMode = "client"
|
|
)
|