Versions in this module Expand all Collapse all v0 v0.2.3 Oct 10, 2024 v0.2.2 Oct 10, 2024 Changes in this version + const ObfsTypeSalamander + 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 + Context context.Context + Dialer N.Dialer + Logger logger.Logger + Password string + ReceiveBPS uint64 + SalamanderPassword string + SendBPS uint64 + ServerAddress M.Socksaddr + TLSConfig aTLS.Config + UDPDisabled bool + type SalamanderPacketConn struct + func (s *SalamanderPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) + func (s *SalamanderPacketConn) 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 + Context context.Context + Handler ServerHandler + IgnoreClientBandwidth bool + Logger logger.Logger + MasqueradeHandler http.Handler + ReceiveBPS uint64 + SalamanderPassword string + SendBPS uint64 + TLSConfig aTLS.ServerConfig + UDPDisabled bool + UDPTimeout time.Duration + type VectorisedSalamanderPacketConn struct + func (s *VectorisedSalamanderPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error) + func (s *VectorisedSalamanderPacketConn) WriteVectorisedPacket(buffers []*buf.Buffer, destination M.Socksaddr) error