Documentation ¶
Index ¶
Constants ¶
View Source
const ( Tcp = "tcp" Udp = "udp" Kcp = "kcp" Quic = "quic" )
Variables ¶
View Source
var ( TcpMeta = ProtocolMeta{Tcp, true, true} UdpMeta = ProtocolMeta{Udp, true, false} KcpMeta = ProtocolMeta{Kcp, false, true} QuicMeta = ProtocolMeta{Quic, false, true} )
Functions ¶
func CheckProtocol ¶
Types ¶
type ProtocolMeta ¶
type ProtocolMeta struct { Name string Tunnel bool // valid tunnel protocol? Communicate bool // valid communicate protocol? }
func GetProtocolMeta ¶
func GetProtocolMeta(s string) (*ProtocolMeta, bool)
func ListCommunicateProtocols ¶
func ListCommunicateProtocols() []ProtocolMeta
func ListTunnelProtocols ¶
func ListTunnelProtocols() []ProtocolMeta
Click to show internal directories.
Click to hide internal directories.