Versions in this module Expand all Collapse all v0 v0.1.1 Jul 26, 2023 v0.1.0 May 9, 2023 Changes in this version + const TypeError + const TypeRelayConnected + const TypeRelayDisconnected + const TypeSOCKS5Active + const TypeSOCKS5ConnectionClosed + const TypeSOCKS5ConnectionOpened + const TypeSOCKS5Inactive + var DefaultEventCallback = func(e Event) + func RunProxy(ctx context.Context, relayConn net.Conn, socks5listenAddr string) (err error) + func RunProxyWithEventCallback(ctx context.Context, relayConn net.Conn, socks5ListenAddr string, ...) error + func RunRelay(ctx context.Context, conn net.Conn) error + func RunRelayWithEventCallback(ctx context.Context, conn net.Conn, callback func(Event)) error + type Event struct + Data string + Type string