github.com/laof/lite-speed-test@v0.0.0-20230930011949-1f39b7037845/tunnel/socks/tunnel.go (about) 1 package socks 2 3 import ( 4 "context" 5 6 "github.com/laof/lite-speed-test/tunnel" 7 ) 8 9 const Name = "SOCKS" 10 11 type Tunnel struct{} 12 13 func (t *Tunnel) Name() string { 14 return Name 15 } 16 17 func (t *Tunnel) NewServer(ctx context.Context, server tunnel.Server) (tunnel.Server, error) { 18 return NewServer(ctx, server) 19 }