Versions in this module Expand all Collapse all v0 v0.0.1 Nov 10, 2023 Changes in this version + const ObfsTypeSalamander + var SetCongestionController = func(quicConn quic.Connection, cc string, cwnd int) + func NewSalamanderConn(conn net.PacketConn, password []byte) net.PacketConn + type Client struct + func NewClient(options ClientOptions) (*Client, error) + func (c *Client) CloseWithError(err error) error + func (c *Client) DialConn(ctx context.Context, destination M.Socksaddr) (net.Conn, error) + func (c *Client) ListenPacket(ctx context.Context) (net.PacketConn, error) + type ClientOptions struct + BrutalDebug bool + CWND int + Context context.Context + Dialer N.Dialer + Logger logger.Logger + Password string + ReceiveBPS uint64 + SalamanderPassword string + SendBPS uint64 + ServerAddress M.Socksaddr + TLSConfig *tls.Config + UDPDisabled bool + type Salamander struct + func (s *Salamander) ReadFrom(p []byte) (n int, addr net.Addr, err error) + func (s *Salamander) WriteTo(p []byte, addr net.Addr) (n int, err error) + type ServerHandler interface + type Service struct + func NewService[U comparable](options ServiceOptions) (*Service[U], error) + func (s *Service[U]) Close() error + func (s *Service[U]) Start(conn net.PacketConn) error + func (s *Service[U]) UpdateUsers(userList []U, passwordList []string) + type ServiceOptions struct + BrutalDebug bool + CWND int + Context context.Context + Handler ServerHandler + IgnoreClientBandwidth bool + Logger logger.Logger + MasqueradeHandler http.Handler + ReceiveBPS uint64 + SalamanderPassword string + SendBPS uint64 + TLSConfig *tls.Config + UDPDisabled bool + type VectorisedSalamander struct + func (s *VectorisedSalamander) WriteTo(p []byte, addr net.Addr) (n int, err error) + func (s *VectorisedSalamander) WriteVectorisedPacket(buffers []*buf.Buffer, destination M.Socksaddr) error