proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

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

func CheckProtocol(s string) bool

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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