Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("closed")
Functions ¶
This section is empty.
Types ¶
type ConnectFunc ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(tlsConfig *tls.Config, quicConfig *quic.Config, pktConn net.PacketConn, transport *transport.ServerTransport, sendBPS uint64, recvBPS uint64, disableUDP bool, aclEngine *acl.Engine, connectFunc ConnectFunc, disconnectFunc DisconnectFunc, tcpRequestFunc TCPRequestFunc, tcpErrorFunc TCPErrorFunc, udpRequestFunc UDPRequestFunc, udpErrorFunc UDPErrorFunc, promRegistry *prometheus.Registry, ) (*Server, error)
type TCPRequestFunc ¶
Click to show internal directories.
Click to hide internal directories.